Tizen 2.1 base
[external/mawk.git] / parse.h
1
2 /* A Bison parser, made by GNU Bison 2.4.1.  */
3
4 /* Skeleton interface for Bison's Yacc-like parsers in C
5    
6       Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7    Free Software Foundation, Inc.
8    
9    This program is free software: you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation, either version 3 of the License, or
12    (at your option) any later version.
13    
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18    
19    You should have received a copy of the GNU General Public License
20    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
21
22 /* As a special exception, you may create a larger work that contains
23    part or all of the Bison parser skeleton and distribute that work
24    under terms of your choice, so long as that work isn't itself a
25    parser generator using the skeleton or a modified version thereof
26    as a parser skeleton.  Alternatively, if you modify or redistribute
27    the parser skeleton itself, you may (at your option) remove this
28    special exception, which will cause the skeleton and the resulting
29    Bison output files to be licensed under the GNU General Public
30    License without this special exception.
31    
32    This special exception was added by the Free Software Foundation in
33    version 2.2 of Bison.  */
34
35
36 /* Tokens.  */
37 #ifndef YYTOKENTYPE
38 # define YYTOKENTYPE
39    /* Put the tokens into the symbol table, so that GDB and other debuggers
40       know about them.  */
41    enum yytokentype {
42      UNEXPECTED = 258,
43      BAD_DECIMAL = 259,
44      NL = 260,
45      SEMI_COLON = 261,
46      LBRACE = 262,
47      RBRACE = 263,
48      LBOX = 264,
49      RBOX = 265,
50      COMMA = 266,
51      IO_OUT = 267,
52      POW_ASG = 268,
53      MOD_ASG = 269,
54      DIV_ASG = 270,
55      MUL_ASG = 271,
56      SUB_ASG = 272,
57      ADD_ASG = 273,
58      ASSIGN = 274,
59      COLON = 275,
60      QMARK = 276,
61      OR = 277,
62      AND = 278,
63      IN = 279,
64      MATCH = 280,
65      GTE = 281,
66      GT = 282,
67      LTE = 283,
68      LT = 284,
69      NEQ = 285,
70      EQ = 286,
71      CAT = 287,
72      GETLINE = 288,
73      MINUS = 289,
74      PLUS = 290,
75      MOD = 291,
76      DIV = 292,
77      MUL = 293,
78      UMINUS = 294,
79      NOT = 295,
80      PIPE = 296,
81      IO_IN = 297,
82      POW = 298,
83      INC_or_DEC = 299,
84      FIELD = 300,
85      DOLLAR = 301,
86      RPAREN = 302,
87      LPAREN = 303,
88      DOUBLE = 304,
89      STRING_ = 305,
90      RE = 306,
91      ID = 307,
92      D_ID = 308,
93      FUNCT_ID = 309,
94      BUILTIN = 310,
95      LENGTH = 311,
96      PRINT = 312,
97      PRINTF = 313,
98      SPLIT = 314,
99      MATCH_FUNC = 315,
100      SUB = 316,
101      GSUB = 317,
102      DO = 318,
103      WHILE = 319,
104      FOR = 320,
105      BREAK = 321,
106      CONTINUE = 322,
107      IF = 323,
108      ELSE = 324,
109      DELETE = 325,
110      BEGIN = 326,
111      END = 327,
112      EXIT = 328,
113      NEXT = 329,
114      RETURN = 330,
115      FUNCTION = 331
116    };
117 #endif
118 /* Tokens.  */
119 #define UNEXPECTED 258
120 #define BAD_DECIMAL 259
121 #define NL 260
122 #define SEMI_COLON 261
123 #define LBRACE 262
124 #define RBRACE 263
125 #define LBOX 264
126 #define RBOX 265
127 #define COMMA 266
128 #define IO_OUT 267
129 #define POW_ASG 268
130 #define MOD_ASG 269
131 #define DIV_ASG 270
132 #define MUL_ASG 271
133 #define SUB_ASG 272
134 #define ADD_ASG 273
135 #define ASSIGN 274
136 #define COLON 275
137 #define QMARK 276
138 #define OR 277
139 #define AND 278
140 #define IN 279
141 #define MATCH 280
142 #define GTE 281
143 #define GT 282
144 #define LTE 283
145 #define LT 284
146 #define NEQ 285
147 #define EQ 286
148 #define CAT 287
149 #define GETLINE 288
150 #define MINUS 289
151 #define PLUS 290
152 #define MOD 291
153 #define DIV 292
154 #define MUL 293
155 #define UMINUS 294
156 #define NOT 295
157 #define PIPE 296
158 #define IO_IN 297
159 #define POW 298
160 #define INC_or_DEC 299
161 #define FIELD 300
162 #define DOLLAR 301
163 #define RPAREN 302
164 #define LPAREN 303
165 #define DOUBLE 304
166 #define STRING_ 305
167 #define RE 306
168 #define ID 307
169 #define D_ID 308
170 #define FUNCT_ID 309
171 #define BUILTIN 310
172 #define LENGTH 311
173 #define PRINT 312
174 #define PRINTF 313
175 #define SPLIT 314
176 #define MATCH_FUNC 315
177 #define SUB 316
178 #define GSUB 317
179 #define DO 318
180 #define WHILE 319
181 #define FOR 320
182 #define BREAK 321
183 #define CONTINUE 322
184 #define IF 323
185 #define ELSE 324
186 #define DELETE 325
187 #define BEGIN 326
188 #define END 327
189 #define EXIT 328
190 #define NEXT 329
191 #define RETURN 330
192 #define FUNCTION 331
193
194
195
196
197 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
198 typedef union YYSTYPE
199 {
200
201 /* Line 1676 of yacc.c  */
202 #line 124 "parse.y"
203
204 CELL *cp ;
205 SYMTAB *stp ;
206 int  start ; /* code starting address as offset from code_base */
207 PF_CP  fp ;  /* ptr to a (print/printf) or (sub/gsub) function */
208 BI_REC *bip ; /* ptr to info about a builtin */
209 FBLOCK  *fbp  ; /* ptr to a function block */
210 ARG2_REC *arg2p ;
211 CA_REC   *ca_p  ;
212 int   ival ;
213 PTR   ptr ;
214
215
216
217 /* Line 1676 of yacc.c  */
218 #line 219 "y.tab.h"
219 } YYSTYPE;
220 # define YYSTYPE_IS_TRIVIAL 1
221 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
222 # define YYSTYPE_IS_DECLARED 1
223 #endif
224
225 extern YYSTYPE yylval;
226
227