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)
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. */
39 /* Put the tokens into the symbol table, so that GDB and other debuggers
65 ASSIGNMENT_WORD
= 281,
69 ARITH_FOR_EXPRS
= 285,
73 GREATER_GREATER
= 289,
81 LESS_LESS_MINUS
= 297,
83 AND_GREATER_GREATER
= 299,
106 #define COND_START 273
108 #define COND_ERROR 275
114 #define ASSIGNMENT_WORD 281
115 #define REDIR_WORD 282
117 #define ARITH_CMD 284
118 #define ARITH_FOR_EXPRS 285
122 #define GREATER_GREATER 289
123 #define LESS_LESS 290
125 #define LESS_LESS_LESS 292
126 #define GREATER_AND 293
127 #define SEMI_SEMI 294
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
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
;
151 PATTERN_LIST
*pattern
;
153 /* Line 1489 of yacc.c. */
156 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
157 # define YYSTYPE_IS_DECLARED 1
158 # define YYSTYPE_IS_TRIVIAL 1
161 extern YYSTYPE yylval
;