Ruby  1.9.3p551(2014-11-13revision48407)
parse.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 2.5. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 /* As a special exception, you may create a larger work that contains
21  part or all of the Bison parser skeleton and distribute that work
22  under terms of your choice, so long as that work isn't itself a
23  parser generator using the skeleton or a modified version thereof
24  as a parser skeleton. Alternatively, if you modify or redistribute
25  the parser skeleton itself, you may (at your option) remove this
26  special exception, which will cause the skeleton and the resulting
27  Bison output files to be licensed under the GNU General Public
28  License without this special exception.
29 
30  This special exception was added by the Free Software Foundation in
31  version 2.2 of Bison. */
32 
33 
34 /* Tokens. */
35 #ifndef YYTOKENTYPE
36 # define YYTOKENTYPE
37  /* Put the tokens into the symbol table, so that GDB and other debuggers
38  know about them. */
39  enum yytokentype {
42  keyword_def = 260,
47  keyword_end = 265,
48  keyword_if = 266,
50  keyword_then = 268,
52  keyword_else = 270,
53  keyword_case = 271,
54  keyword_when = 272,
57  keyword_for = 275,
59  keyword_next = 277,
60  keyword_redo = 278,
62  keyword_in = 280,
63  keyword_do = 281,
70  keyword_self = 288,
71  keyword_nil = 289,
72  keyword_true = 290,
74  keyword_and = 292,
75  keyword_or = 293,
76  keyword_not = 294,
77  modifier_if = 295,
85  keyword_END = 303,
89  tIDENTIFIER = 307,
90  tFID = 308,
91  tGVAR = 309,
92  tIVAR = 310,
93  tCONSTANT = 311,
94  tCVAR = 312,
95  tLABEL = 313,
96  tINTEGER = 314,
97  tFLOAT = 315,
99  tCHAR = 317,
100  tNTH_REF = 318,
101  tBACK_REF = 319,
102  tREGEXP_END = 320,
103  tUPLUS = 321,
104  tUMINUS = 322,
105  tPOW = 323,
106  tCMP = 324,
107  tEQ = 325,
108  tEQQ = 326,
109  tNEQ = 327,
110  tGEQ = 328,
111  tLEQ = 329,
112  tANDOP = 330,
113  tOROP = 331,
114  tMATCH = 332,
115  tNMATCH = 333,
116  tDOT2 = 334,
117  tDOT3 = 335,
118  tAREF = 336,
119  tASET = 337,
120  tLSHFT = 338,
121  tRSHFT = 339,
122  tCOLON2 = 340,
123  tCOLON3 = 341,
124  tOP_ASGN = 342,
125  tASSOC = 343,
126  tLPAREN = 344,
127  tLPAREN_ARG = 345,
128  tRPAREN = 346,
129  tLBRACK = 347,
130  tLBRACE = 348,
131  tLBRACE_ARG = 349,
132  tSTAR = 350,
133  tAMPER = 351,
134  tLAMBDA = 352,
135  tSYMBEG = 353,
136  tSTRING_BEG = 354,
138  tREGEXP_BEG = 356,
139  tWORDS_BEG = 357,
140  tQWORDS_BEG = 358,
143  tSTRING_END = 361,
144  tLAMBEG = 362,
145  tLOWEST = 363,
146  tUMINUS_NUM = 364,
147  idNULL = 365,
149  idIFUNC = 367,
150  idCFUNC = 368,
158  };
159 #endif
160 
161 
162 
163 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
164 typedef union YYSTYPE
165 {
166 
167 /* Line 2068 of yacc.c */
168 
169  VALUE val;
170  NODE *node;
171  ID id;
172  int num;
173  const struct vtable *vars;
174 
175 
176 
177 /* Line 2068 of yacc.c */
178 } YYSTYPE;
179 # define YYSTYPE_IS_TRIVIAL 1
180 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
181 # define YYSTYPE_IS_DECLARED 1
182 #endif
183 
184 
185 
186 
VALUE val
Definition: ripper.y:170
Definition: ripper.y:118
Definition: ripper.y:114
int num
Definition: ripper.y:173
Definition: ripper.y:107
keyword_alias tGVAR tBACK_REF
Definition: ripper.y:976
Definition: ripper.y:117
Definition: ripper.y:104
Definition: ripper.y:119
unsigned long VALUE
Definition: ruby.h:88
Definition: ripper.y:98
yytokentype
Definition: ripper.y:40
ID id
Definition: ripper.y:172
keyword_alias tGVAR tNTH_REF
Definition: ripper.y:987
Definition: ripper.y:108
Definition: ripper.y:148
primary_value operation2 command_args prec tLOWEST
Definition: ripper.y:1370
Definition: ripper.y:111
Definition: ripper.y:106
Definition: ripper.y:113
Definition: ripper.y:95
#define tLAST_TOKEN
Definition: ripper.y:37
Definition: ripper.y:236
Definition: ripper.y:109
Definition: ripper.y:96
Definition: ripper.y:112
keyword_END
Definition: ripper.y:1057
Definition: ripper.y:115
Definition: ripper.y:122
unsigned long ID
Definition: ruby.h:89
NODE * node
Definition: ripper.y:171
Definition: ripper.y:93
Definition: ripper.y:100
mlhs_head tSTAR
Definition: ripper.y:1511
union YYSTYPE YYSTYPE
struct vtable * vars
Definition: ripper.y:174
Definition: ripper.y:121
Definition: ripper.y:110
Definition: ripper.y:91
Definition: ripper.y:126
Definition: ripper.y:120
keyword_alias tGVAR tGVAR
Definition: ripper.y:968
Definition: ripper.c:151
Definition: ripper.y:134