xref: /freebsd/contrib/byacc/test/btyacc/btyacc_demo.tab.h (revision f7c32ed617858bcd22f8d1b03199099d50125721)
1 #ifndef _demo__defines_h_
2 #define _demo__defines_h_
3 
4 #define PREFIX 257
5 #define POSTFIX 258
6 #define ID 259
7 #define CONSTANT 260
8 #define EXTERN 261
9 #define REGISTER 262
10 #define STATIC 263
11 #define CONST 264
12 #define VOLATILE 265
13 #define IF 266
14 #define THEN 267
15 #define ELSE 268
16 #define CLCL 269
17 #ifdef YYSTYPE
18 #undef  YYSTYPE_IS_DECLARED
19 #define YYSTYPE_IS_DECLARED 1
20 #endif
21 #ifndef YYSTYPE_IS_DECLARED
22 #define YYSTYPE_IS_DECLARED 1
23 typedef union {
24     Scope	*scope;
25     Expr	*expr;
26     Expr_List	*elist;
27     Type	*type;
28     Decl	*decl;
29     Decl_List	*dlist;
30     Code	*code;
31     char	*id;
32     } YYSTYPE;
33 #endif /* !YYSTYPE_IS_DECLARED */
34 extern YYSTYPE demo_lval;
35 
36 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
37 /* Default: YYLTYPE is the text position type. */
38 typedef struct YYLTYPE
39 {
40     int first_line;
41     int first_column;
42     int last_line;
43     int last_column;
44     unsigned source;
45 } YYLTYPE;
46 #define YYLTYPE_IS_DECLARED 1
47 #endif
48 #define YYRHSLOC(rhs, k) ((rhs)[k])
49 extern YYLTYPE demo_lloc;
50 
51 #endif /* _demo__defines_h_ */
52