Patch-ID: bash41-009
[bash.git] / y.tab.h
blob13e8550fc08e4c47e6f39b00d53ff79d786557da
1 /* A Bison parser, made by GNU Bison 2.3. */
3 /* Skeleton interface for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
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 IF = 258,
43 THEN = 259,
44 ELSE = 260,
45 ELIF = 261,
46 FI = 262,
47 CASE = 263,
48 ESAC = 264,
49 FOR = 265,
50 SELECT = 266,
51 WHILE = 267,
52 UNTIL = 268,
53 DO = 269,
54 DONE = 270,
55 FUNCTION = 271,
56 COPROC = 272,
57 COND_START = 273,
58 COND_END = 274,
59 COND_ERROR = 275,
60 IN = 276,
61 BANG = 277,
62 TIME = 278,
63 TIMEOPT = 279,
64 WORD = 280,
65 ASSIGNMENT_WORD = 281,
66 REDIR_WORD = 282,
67 NUMBER = 283,
68 ARITH_CMD = 284,
69 ARITH_FOR_EXPRS = 285,
70 COND_CMD = 286,
71 AND_AND = 287,
72 OR_OR = 288,
73 GREATER_GREATER = 289,
74 LESS_LESS = 290,
75 LESS_AND = 291,
76 LESS_LESS_LESS = 292,
77 GREATER_AND = 293,
78 SEMI_SEMI = 294,
79 SEMI_AND = 295,
80 SEMI_SEMI_AND = 296,
81 LESS_LESS_MINUS = 297,
82 AND_GREATER = 298,
83 AND_GREATER_GREATER = 299,
84 LESS_GREATER = 300,
85 GREATER_BAR = 301,
86 BAR_AND = 302,
87 yacc_EOF = 303
89 #endif
90 /* Tokens. */
91 #define IF 258
92 #define THEN 259
93 #define ELSE 260
94 #define ELIF 261
95 #define FI 262
96 #define CASE 263
97 #define ESAC 264
98 #define FOR 265
99 #define SELECT 266
100 #define WHILE 267
101 #define UNTIL 268
102 #define DO 269
103 #define DONE 270
104 #define FUNCTION 271
105 #define COPROC 272
106 #define COND_START 273
107 #define COND_END 274
108 #define COND_ERROR 275
109 #define IN 276
110 #define BANG 277
111 #define TIME 278
112 #define TIMEOPT 279
113 #define WORD 280
114 #define ASSIGNMENT_WORD 281
115 #define REDIR_WORD 282
116 #define NUMBER 283
117 #define ARITH_CMD 284
118 #define ARITH_FOR_EXPRS 285
119 #define COND_CMD 286
120 #define AND_AND 287
121 #define OR_OR 288
122 #define GREATER_GREATER 289
123 #define LESS_LESS 290
124 #define LESS_AND 291
125 #define LESS_LESS_LESS 292
126 #define GREATER_AND 293
127 #define SEMI_SEMI 294
128 #define SEMI_AND 295
129 #define SEMI_SEMI_AND 296
130 #define LESS_LESS_MINUS 297
131 #define AND_GREATER 298
132 #define AND_GREATER_GREATER 299
133 #define LESS_GREATER 300
134 #define GREATER_BAR 301
135 #define BAR_AND 302
136 #define yacc_EOF 303
141 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
142 typedef union YYSTYPE
143 #line 320 "/Users/chet/src/bash/src/parse.y"
145 WORD_DESC *word; /* the word that we read. */
146 int number; /* the number that we read. */
147 WORD_LIST *word_list;
148 COMMAND *command;
149 REDIRECT *redirect;
150 ELEMENT element;
151 PATTERN_LIST *pattern;
153 /* Line 1489 of yacc.c. */
154 #line 155 "y.tab.h"
155 YYSTYPE;
156 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
157 # define YYSTYPE_IS_DECLARED 1
158 # define YYSTYPE_IS_TRIVIAL 1
159 #endif
161 extern YYSTYPE yylval;