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