2 extern void mksymbol(int t, int c, int id);
5 #define YYLEX_DECL() yylex(void)
6 #define YYERROR_DECL() yyerror(const char *s)
7 extern int YYLEX_DECL();
8 extern void YYERROR_DECL();
19 declaration: class type namelist
25 class : GLOBAL { $$ = 1; }
29 type : REAL { $$ = 1; }
33 namelist: namelist NAME
34 { mksymbol($0, $-1, $2); }
36 { mksymbol($0, $-1, $1); }
40 { $$ = 2; } /* set up semantic stack for <class>: LOCAL */
41 { $$ = $-1; } /* copy <type> to where <namelist> expects it */
47 extern int YYLEX_DECL();
48 extern void YYERROR_DECL();