* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)yacc.c 8.2 (Berkeley) %G%";
* find the yacc tags and put them in.
if (in_rule
|| !isalpha(c
) && c
!= '.' && c
!= '_')
while (GETC(!=, EOF
) && (intoken(c
) || c
== '.'))
getline(); /* may change before ':' */
* throw away lines up to the next "\n%%\n"
int c
; /* read character */
* state == 1 : received a newline
* state == 2 : received first %
* state == 3 : recieved second %
for (state
= 0; GETC(!=, EOF
);)
if (state
== 3) /* done! */
state
= 1; /* start over */
if (state
) /* if 1 or 2 */