1 /* $NetBSD: inherit0.y,v 1.1.1.1 2015/01/03 22:58:23 christos Exp $ */
4 extern
void mksymbol
(int t
, int c
, int id
);
7 #define YYLEX_DECL() yylex(void)
8 #define YYERROR_DECL() yyerror(const char *s)
9 extern
int YYLEX_DECL
();
10 extern
void YYERROR_DECL
();
21 declaration: class type namelist
27 class
: GLOBAL
{ $$
= 1; }
31 type
: REAL
{ $$
= 1; }
35 namelist: namelist NAME
36 { mksymbol
($0, $
-1, $2); }
38 { mksymbol
($0, $
-1, $1); }
42 { $$
= 2; } /* set up semantic stack for <class>: LOCAL */
43 { $$
= $
-1; } /* copy <type> to where <namelist> expects it */
49 extern
int YYLEX_DECL
();
50 extern
void YYERROR_DECL
();