]> git.ipfire.org Git - thirdparty/bash.git/blob - parser-built
Imported from ../bash-4.0-rc1.tar.gz.
[thirdparty/bash.git] / parser-built
1 /* A Bison parser, made by GNU Bison 2.3. */
2
3 /* Skeleton interface for Bison's Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
7
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.
12
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.
17
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. */
22
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.
32
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
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 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 NUMBER = 282,
67 ARITH_CMD = 283,
68 ARITH_FOR_EXPRS = 284,
69 COND_CMD = 285,
70 AND_AND = 286,
71 OR_OR = 287,
72 GREATER_GREATER = 288,
73 LESS_LESS = 289,
74 LESS_AND = 290,
75 LESS_LESS_LESS = 291,
76 GREATER_AND = 292,
77 SEMI_SEMI = 293,
78 SEMI_AND = 294,
79 SEMI_SEMI_AND = 295,
80 LESS_LESS_MINUS = 296,
81 AND_GREATER = 297,
82 AND_GREATER_GREATER = 298,
83 LESS_GREATER = 299,
84 GREATER_BAR = 300,
85 BAR_AND = 301,
86 yacc_EOF = 302
87 };
88 #endif
89 /* Tokens. */
90 #define IF 258
91 #define THEN 259
92 #define ELSE 260
93 #define ELIF 261
94 #define FI 262
95 #define CASE 263
96 #define ESAC 264
97 #define FOR 265
98 #define SELECT 266
99 #define WHILE 267
100 #define UNTIL 268
101 #define DO 269
102 #define DONE 270
103 #define FUNCTION 271
104 #define COPROC 272
105 #define COND_START 273
106 #define COND_END 274
107 #define COND_ERROR 275
108 #define IN 276
109 #define BANG 277
110 #define TIME 278
111 #define TIMEOPT 279
112 #define WORD 280
113 #define ASSIGNMENT_WORD 281
114 #define NUMBER 282
115 #define ARITH_CMD 283
116 #define ARITH_FOR_EXPRS 284
117 #define COND_CMD 285
118 #define AND_AND 286
119 #define OR_OR 287
120 #define GREATER_GREATER 288
121 #define LESS_LESS 289
122 #define LESS_AND 290
123 #define LESS_LESS_LESS 291
124 #define GREATER_AND 292
125 #define SEMI_SEMI 293
126 #define SEMI_AND 294
127 #define SEMI_SEMI_AND 295
128 #define LESS_LESS_MINUS 296
129 #define AND_GREATER 297
130 #define AND_GREATER_GREATER 298
131 #define LESS_GREATER 299
132 #define GREATER_BAR 300
133 #define BAR_AND 301
134 #define yacc_EOF 302
135
136
137
138
139 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
140 typedef union YYSTYPE
141 #line 316 "/Users/chet/src/bash/src/parse.y"
142 {
143 WORD_DESC *word; /* the word that we read. */
144 int number; /* the number that we read. */
145 WORD_LIST *word_list;
146 COMMAND *command;
147 REDIRECT *redirect;
148 ELEMENT element;
149 PATTERN_LIST *pattern;
150 }
151 /* Line 1489 of yacc.c. */
152 #line 153 "y.tab.h"
153 YYSTYPE;
154 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
155 # define YYSTYPE_IS_DECLARED 1
156 # define YYSTYPE_IS_TRIVIAL 1
157 #endif
158
159 extern YYSTYPE yylval;
160