| 1 |
/* A Bison parser, made from ../../../src/vsh/vyacc.y, by GNU bison 1.75. */ |
| 2 |
|
| 3 |
/* Skeleton parser for Yacc-like parsing with Bison, |
| 4 |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. |
| 5 |
|
| 6 |
This program is free software; you can redistribute it and/or modify |
| 7 |
it under the terms of the GNU General Public License as published by |
| 8 |
the Free Software Foundation; either version 2, or (at your option) |
| 9 |
any later version. |
| 10 |
|
| 11 |
This program is distributed in the hope that it will be useful, |
| 12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
GNU General Public License for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with this program; if not, write to the Free Software |
| 18 |
Foundation, Inc., 59 Temple Place - Suite 330, |
| 19 |
Boston, MA 02111-1307, USA. */ |
| 20 |
|
| 21 |
/* As a special exception, when this file is copied by Bison into a |
| 22 |
Bison output file, you may use that output file without restriction. |
| 23 |
This special exception was added by the Free Software Foundation |
| 24 |
in version 1.24 of Bison. */ |
| 25 |
|
| 26 |
#ifndef BISON_Y_TAB_H |
| 27 |
# define BISON_Y_TAB_H |
| 28 |
|
| 29 |
/* Tokens. */ |
| 30 |
#ifndef YYTOKENTYPE |
| 31 |
# define YYTOKENTYPE |
| 32 |
/* Put the tokens into the symbol table, so that GDB and other debuggers |
| 33 |
know about them. */ |
| 34 |
enum yytokentype { |
| 35 |
IF = 258, |
| 36 |
THEN = 259, |
| 37 |
ELSE = 260, |
| 38 |
ELIF = 261, |
| 39 |
FI = 262, |
| 40 |
CASE = 263, |
| 41 |
IN = 264, |
| 42 |
ESAC = 265, |
| 43 |
FOR = 266, |
| 44 |
WHILE = 267, |
| 45 |
UNTIL = 268, |
| 46 |
DO = 269, |
| 47 |
DONE = 270, |
| 48 |
SEMI_SEMI = 271, |
| 49 |
AND_AND = 272, |
| 50 |
OR_OR = 273, |
| 51 |
LESS_LESS = 274, |
| 52 |
GREATER_GREATER = 275, |
| 53 |
LESS_AND = 276, |
| 54 |
GREATER_AND = 277, |
| 55 |
AND_GREATER = 278, |
| 56 |
LESS_GREATER = 279, |
| 57 |
GREATER_BAR = 280, |
| 58 |
LESS_LESS_MINUS = 281, |
| 59 |
WORD = 282, |
| 60 |
ASSIGNMENT_WORD = 283, |
| 61 |
SELECT = 284, |
| 62 |
FUNCTION = 285, |
| 63 |
BANG = 286, |
| 64 |
vsh_EOF = 287 |
| 65 |
}; |
| 66 |
#endif |
| 67 |
#define IF 258 |
| 68 |
#define THEN 259 |
| 69 |
#define ELSE 260 |
| 70 |
#define ELIF 261 |
| 71 |
#define FI 262 |
| 72 |
#define CASE 263 |
| 73 |
#define IN 264 |
| 74 |
#define ESAC 265 |
| 75 |
#define FOR 266 |
| 76 |
#define WHILE 267 |
| 77 |
#define UNTIL 268 |
| 78 |
#define DO 269 |
| 79 |
#define DONE 270 |
| 80 |
#define SEMI_SEMI 271 |
| 81 |
#define AND_AND 272 |
| 82 |
#define OR_OR 273 |
| 83 |
#define LESS_LESS 274 |
| 84 |
#define GREATER_GREATER 275 |
| 85 |
#define LESS_AND 276 |
| 86 |
#define GREATER_AND 277 |
| 87 |
#define AND_GREATER 278 |
| 88 |
#define LESS_GREATER 279 |
| 89 |
#define GREATER_BAR 280 |
| 90 |
#define LESS_LESS_MINUS 281 |
| 91 |
#define WORD 282 |
| 92 |
#define ASSIGNMENT_WORD 283 |
| 93 |
#define SELECT 284 |
| 94 |
#define FUNCTION 285 |
| 95 |
#define BANG 286 |
| 96 |
#define vsh_EOF 287 |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
#ifndef YYSTYPE |
| 102 |
#line 413 "../../../src/vsh/vyacc.y" |
| 103 |
typedef union { |
| 104 |
WORD_DESC *word; /* the word that we read. */ |
| 105 |
/* int number; */ /* number we saw */ |
| 106 |
WORD_LIST *word_list; /* a sequence of white-space separated words */ |
| 107 |
COMMAND *command; /* a complete command */ |
| 108 |
REDIRECT *redirect; /* redirect i/o info */ |
| 109 |
ELEMENT element; /* base element */ |
| 110 |
PATTERN_LIST *pattern; /* a case pattern */ |
| 111 |
} yystype; |
| 112 |
/* Line 1281 of /usr/share/bison/yacc.c. */ |
| 113 |
#line 114 "y.tab.h" |
| 114 |
# define YYSTYPE yystype |
| 115 |
#endif |
| 116 |
|
| 117 |
extern YYSTYPE yylval; |
| 118 |
|
| 119 |
|
| 120 |
#endif /* not BISON_Y_TAB_H */ |
| 121 |
|