Ruby
1.9.3p547(2014-05-14revision45962)
Main Page
Modules
Data Structures
Files
File List
Globals
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
{
40
keyword_class
= 258,
41
keyword_module
= 259,
42
keyword_def
= 260,
43
keyword_undef
= 261,
44
keyword_begin
= 262,
45
keyword_rescue
= 263,
46
keyword_ensure
= 264,
47
keyword_end
= 265,
48
keyword_if
= 266,
49
keyword_unless
= 267,
50
keyword_then
= 268,
51
keyword_elsif
= 269,
52
keyword_else
= 270,
53
keyword_case
= 271,
54
keyword_when
= 272,
55
keyword_while
= 273,
56
keyword_until
= 274,
57
keyword_for
= 275,
58
keyword_break
= 276,
59
keyword_next
= 277,
60
keyword_redo
= 278,
61
keyword_retry
= 279,
62
keyword_in
= 280,
63
keyword_do
= 281,
64
keyword_do_cond
= 282,
65
keyword_do_block
= 283,
66
keyword_do_LAMBDA
= 284,
67
keyword_return
= 285,
68
keyword_yield
= 286,
69
keyword_super
= 287,
70
keyword_self
= 288,
71
keyword_nil
= 289,
72
keyword_true
= 290,
73
keyword_false
= 291,
74
keyword_and
= 292,
75
keyword_or
= 293,
76
keyword_not
= 294,
77
modifier_if
= 295,
78
modifier_unless
= 296,
79
modifier_while
= 297,
80
modifier_until
= 298,
81
modifier_rescue
= 299,
82
keyword_alias
= 300,
83
keyword_defined
= 301,
84
keyword_BEGIN
= 302,
85
keyword_END
= 303,
86
keyword__LINE__
= 304,
87
keyword__FILE__
= 305,
88
keyword__ENCODING__
= 306,
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,
98
tSTRING_CONTENT
= 316,
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,
137
tXSTRING_BEG
= 355,
138
tREGEXP_BEG
= 356,
139
tWORDS_BEG
= 357,
140
tQWORDS_BEG
= 358,
141
tSTRING_DBEG
= 359,
142
tSTRING_DVAR
= 360,
143
tSTRING_END
= 361,
144
tLAMBEG
= 362,
145
tLOWEST
= 363,
146
tUMINUS_NUM
= 364,
147
idNULL
= 365,
148
idRespond_to
= 366,
149
idIFUNC
= 367,
150
idCFUNC
= 368,
151
id_core_set_method_alias
= 369,
152
id_core_set_variable_alias
= 370,
153
id_core_undef_method
= 371,
154
id_core_define_method
= 372,
155
id_core_define_singleton_method
= 373,
156
id_core_set_postexe
= 374,
157
tLAST_TOKEN
= 375
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
keyword_case
Definition:
parse.h:53
keyword_in
Definition:
parse.h:62
YYSTYPE::val
VALUE val
Definition:
ripper.c:832
keyword__LINE__
Definition:
parse.h:86
keyword_and
Definition:
parse.h:74
keyword_until
Definition:
parse.h:56
tXSTRING_BEG
Definition:
parse.h:137
tCONSTANT
Definition:
parse.h:93
id_core_set_postexe
Definition:
parse.h:156
tLPAREN_ARG
Definition:
parse.h:127
YYSTYPE
union YYSTYPE YYSTYPE
YYSTYPE::num
int num
Definition:
ripper.c:835
tIVAR
Definition:
parse.h:92
idNULL
Definition:
parse.h:147
tREGEXP_BEG
Definition:
parse.h:138
keyword_break
Definition:
parse.h:58
tAMPER
Definition:
parse.h:133
tWORDS_BEG
Definition:
parse.h:139
tLAST_TOKEN
Definition:
parse.h:157
keyword_for
Definition:
parse.h:57
keyword_while
Definition:
parse.h:55
tLBRACK
Definition:
parse.h:129
tEQQ
Definition:
parse.h:108
keyword_rescue
Definition:
parse.h:45
tAREF
Definition:
parse.h:118
tGVAR
Definition:
parse.h:91
tIDENTIFIER
Definition:
parse.h:89
idCFUNC
Definition:
parse.h:150
tCOLON3
Definition:
parse.h:123
YYSTYPE::id
ID id
Definition:
ripper.c:834
tFID
Definition:
parse.h:90
keyword_else
Definition:
parse.h:52
tBACK_REF
Definition:
parse.h:101
id_core_set_method_alias
Definition:
parse.h:151
tGEQ
Definition:
parse.h:110
keyword_class
Definition:
parse.h:40
keyword_if
Definition:
parse.h:48
keyword_END
Definition:
parse.h:85
keyword_module
Definition:
parse.h:41
tSTRING_BEG
Definition:
parse.h:136
tEQ
Definition:
parse.h:107
keyword_do_LAMBDA
Definition:
parse.h:66
keyword_return
Definition:
parse.h:67
tOROP
Definition:
parse.h:113
RNode
Definition:
node.h:235
YYSTYPE
Definition:
ripper.c:826
tLAMBDA
Definition:
parse.h:134
keyword_alias
Definition:
parse.h:82
keyword_do_cond
Definition:
parse.h:64
tLEQ
Definition:
parse.h:111
keyword_elsif
Definition:
parse.h:51
keyword_undef
Definition:
parse.h:43
tNTH_REF
Definition:
parse.h:100
keyword_false
Definition:
parse.h:73
keyword_unless
Definition:
parse.h:49
tUMINUS_NUM
Definition:
parse.h:146
keyword_begin
Definition:
parse.h:44
keyword_or
Definition:
parse.h:75
tUPLUS
Definition:
parse.h:103
YYSTYPE::vars
const struct vtable * vars
Definition:
ripper.c:836
tDOT2
Definition:
parse.h:116
keyword_BEGIN
Definition:
parse.h:84
keyword_retry
Definition:
parse.h:61
keyword_do
Definition:
parse.h:63
tMATCH
Definition:
parse.h:114
modifier_while
Definition:
parse.h:79
tLSHFT
Definition:
parse.h:120
tSYMBEG
Definition:
parse.h:135
tLAMBEG
Definition:
parse.h:144
id_core_define_method
Definition:
parse.h:154
tSTRING_END
Definition:
parse.h:143
tLPAREN
Definition:
parse.h:126
tQWORDS_BEG
Definition:
parse.h:140
ID
unsigned long ID
Definition:
ruby.h:89
YYSTYPE::node
NODE * node
Definition:
ripper.c:833
tASET
Definition:
parse.h:119
tSTRING_DBEG
Definition:
parse.h:141
id_core_set_variable_alias
Definition:
parse.h:152
keyword_ensure
Definition:
parse.h:46
modifier_unless
Definition:
parse.h:78
VALUE
unsigned long VALUE
Definition:
ruby.h:88
tNMATCH
Definition:
parse.h:115
tCOLON2
Definition:
parse.h:122
tLBRACE_ARG
Definition:
parse.h:131
keyword_next
Definition:
parse.h:59
tREGEXP_END
Definition:
parse.h:102
keyword_def
Definition:
parse.h:42
tRSHFT
Definition:
parse.h:121
keyword_yield
Definition:
parse.h:68
keyword_then
Definition:
parse.h:50
tDOT3
Definition:
parse.h:117
keyword_when
Definition:
parse.h:54
tPOW
Definition:
parse.h:105
tANDOP
Definition:
parse.h:112
tLABEL
Definition:
parse.h:95
keyword_self
Definition:
parse.h:70
yytokentype
yytokentype
Definition:
ripper.c:701
tCVAR
Definition:
parse.h:94
keyword__ENCODING__
Definition:
parse.h:88
tASSOC
Definition:
parse.h:125
tLOWEST
Definition:
parse.h:145
tOP_ASGN
Definition:
parse.h:124
tUMINUS
Definition:
parse.h:104
tCMP
Definition:
parse.h:106
tCHAR
Definition:
parse.h:99
modifier_if
Definition:
parse.h:77
keyword_not
Definition:
parse.h:76
tRPAREN
Definition:
parse.h:128
id_core_define_singleton_method
Definition:
parse.h:155
keyword_defined
Definition:
parse.h:83
modifier_until
Definition:
parse.h:80
tFLOAT
Definition:
parse.h:97
tLBRACE
Definition:
parse.h:130
keyword_true
Definition:
parse.h:72
tNEQ
Definition:
parse.h:109
keyword_redo
Definition:
parse.h:60
vtable
Definition:
ripper.c:151
idRespond_to
Definition:
parse.h:148
tSTRING_CONTENT
Definition:
parse.h:98
idIFUNC
Definition:
parse.h:149
tSTAR
Definition:
parse.h:132
keyword__FILE__
Definition:
parse.h:87
keyword_nil
Definition:
parse.h:71
keyword_super
Definition:
parse.h:69
modifier_rescue
Definition:
parse.h:81
tSTRING_DVAR
Definition:
parse.h:142
id_core_undef_method
Definition:
parse.h:153
keyword_end
Definition:
parse.h:47
keyword_do_block
Definition:
parse.h:65
tINTEGER
Definition:
parse.h:96
Generated on Wed Feb 17 2016 12:31:23 for Ruby by
1.8.6