]>
Commit | Line | Data |
---|---|---|
3185942a JA |
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, | |
495aee44 CR |
64 | TIMEIGN = 280, |
65 | WORD = 281, | |
66 | ASSIGNMENT_WORD = 282, | |
67 | REDIR_WORD = 283, | |
68 | NUMBER = 284, | |
69 | ARITH_CMD = 285, | |
70 | ARITH_FOR_EXPRS = 286, | |
71 | COND_CMD = 287, | |
72 | AND_AND = 288, | |
73 | OR_OR = 289, | |
74 | GREATER_GREATER = 290, | |
75 | LESS_LESS = 291, | |
76 | LESS_AND = 292, | |
77 | LESS_LESS_LESS = 293, | |
78 | GREATER_AND = 294, | |
79 | SEMI_SEMI = 295, | |
80 | SEMI_AND = 296, | |
81 | SEMI_SEMI_AND = 297, | |
82 | LESS_LESS_MINUS = 298, | |
83 | AND_GREATER = 299, | |
84 | AND_GREATER_GREATER = 300, | |
85 | LESS_GREATER = 301, | |
86 | GREATER_BAR = 302, | |
87 | BAR_AND = 303, | |
88 | yacc_EOF = 304 | |
3185942a JA |
89 | }; |
90 | #endif | |
91 | /* Tokens. */ | |
92 | #define IF 258 | |
93 | #define THEN 259 | |
94 | #define ELSE 260 | |
95 | #define ELIF 261 | |
96 | #define FI 262 | |
97 | #define CASE 263 | |
98 | #define ESAC 264 | |
99 | #define FOR 265 | |
100 | #define SELECT 266 | |
101 | #define WHILE 267 | |
102 | #define UNTIL 268 | |
103 | #define DO 269 | |
104 | #define DONE 270 | |
105 | #define FUNCTION 271 | |
106 | #define COPROC 272 | |
107 | #define COND_START 273 | |
108 | #define COND_END 274 | |
109 | #define COND_ERROR 275 | |
110 | #define IN 276 | |
111 | #define BANG 277 | |
112 | #define TIME 278 | |
113 | #define TIMEOPT 279 | |
495aee44 CR |
114 | #define TIMEIGN 280 |
115 | #define WORD 281 | |
116 | #define ASSIGNMENT_WORD 282 | |
117 | #define REDIR_WORD 283 | |
118 | #define NUMBER 284 | |
119 | #define ARITH_CMD 285 | |
120 | #define ARITH_FOR_EXPRS 286 | |
121 | #define COND_CMD 287 | |
122 | #define AND_AND 288 | |
123 | #define OR_OR 289 | |
124 | #define GREATER_GREATER 290 | |
125 | #define LESS_LESS 291 | |
126 | #define LESS_AND 292 | |
127 | #define LESS_LESS_LESS 293 | |
128 | #define GREATER_AND 294 | |
129 | #define SEMI_SEMI 295 | |
130 | #define SEMI_AND 296 | |
131 | #define SEMI_SEMI_AND 297 | |
132 | #define LESS_LESS_MINUS 298 | |
133 | #define AND_GREATER 299 | |
134 | #define AND_GREATER_GREATER 300 | |
135 | #define LESS_GREATER 301 | |
136 | #define GREATER_BAR 302 | |
137 | #define BAR_AND 303 | |
138 | #define yacc_EOF 304 | |
3185942a JA |
139 | |
140 | ||
141 | ||
142 | ||
143 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED | |
144 | typedef union YYSTYPE | |
ac50fbac | 145 | #line 324 "/usr/homes/chet/src/bash/src/parse.y" |
3185942a | 146 | { |
726f6388 JA |
147 | WORD_DESC *word; /* the word that we read. */ |
148 | int number; /* the number that we read. */ | |
149 | WORD_LIST *word_list; | |
150 | COMMAND *command; | |
151 | REDIRECT *redirect; | |
152 | ELEMENT element; | |
153 | PATTERN_LIST *pattern; | |
3185942a | 154 | } |
509a4430 | 155 | /* Line 1529 of yacc.c. */ |
495aee44 | 156 | #line 157 "y.tab.h" |
3185942a JA |
157 | YYSTYPE; |
158 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ | |
159 | # define YYSTYPE_IS_DECLARED 1 | |
160 | # define YYSTYPE_IS_TRIVIAL 1 | |
161 | #endif | |
f73dda09 | 162 | |
726f6388 | 163 | extern YYSTYPE yylval; |
3185942a | 164 |