Ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a25176072e02db9254f0e0c84c805cd)
parse.h
Go to the documentation of this file.
1/* A Bison parser, made by GNU Bison 3.5.1. */
2
3/* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
6 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 3 of the License, or
11 (at your option) 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, see <http://www.gnu.org/licenses/>. */
20
21/* As a special exception, you may create a larger work that contains
22 part or all of the Bison parser skeleton and distribute that work
23 under terms of your choice, so long as that work isn't itself a
24 parser generator using the skeleton or a modified version thereof
25 as a parser skeleton. Alternatively, if you modify or redistribute
26 the parser skeleton itself, you may (at your option) remove this
27 special exception, which will cause the skeleton and the resulting
28 Bison output files to be licensed under the GNU General Public
29 License without this special exception.
30
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
33
34/* Undocumented macros, especially those whose name start with YY_,
35 are private implementation details. Do not rely on them. */
36
37#ifndef YY_YY_Y_TAB_H_INCLUDED
38# define YY_YY_Y_TAB_H_INCLUDED
39/* Debug traces. */
40#ifndef YYDEBUG
41# define YYDEBUG 0
42#endif
43#if YYDEBUG
44extern int yydebug;
45#endif
46
47/* Token type. */
48#ifndef YYTOKENTYPE
49# define YYTOKENTYPE
51 {
103 tFID = 308,
104 tGVAR = 309,
105 tIVAR = 310,
107 tCVAR = 312,
108 tLABEL = 313,
109 tINTEGER = 314,
110 tFLOAT = 315,
113 tCHAR = 318,
114 tNTH_REF = 319,
118 tSP = 323,
119 tUPLUS = 132,
120 tUMINUS = 133,
121 tPOW = 134,
122 tCMP = 135,
123 tEQ = 140,
124 tEQQ = 141,
125 tNEQ = 142,
126 tGEQ = 139,
127 tLEQ = 138,
128 tANDOP = 148,
129 tOROP = 149,
130 tMATCH = 143,
131 tNMATCH = 144,
132 tDOT2 = 128,
133 tDOT3 = 129,
134 tBDOT2 = 130,
135 tBDOT3 = 131,
136 tAREF = 145,
137 tASET = 146,
138 tLSHFT = 136,
139 tRSHFT = 137,
140 tANDDOT = 150,
141 tCOLON2 = 147,
142 tCOLON3 = 324,
143 tOP_ASGN = 325,
144 tASSOC = 326,
145 tLPAREN = 327,
147 tRPAREN = 329,
148 tLBRACK = 330,
149 tLBRACE = 331,
151 tSTAR = 333,
152 tDSTAR = 334,
153 tAMPER = 335,
154 tLAMBDA = 336,
155 tSYMBEG = 337,
167 tLAMBEG = 349,
169 tLOWEST = 351,
171 tLAST_TOKEN = 353
172 };
173#endif
174
175/* Value type. */
176#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
178{
179
183 int num;
185 const struct vtable *vars;
187
188
189};
190typedef union YYSTYPE YYSTYPE;
191# define YYSTYPE_IS_TRIVIAL 1
192# define YYSTYPE_IS_DECLARED 1
193#endif
194
195/* Location type. */
196#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
197typedef struct YYLTYPE YYLTYPE;
199{
204};
205# define YYLTYPE_IS_DECLARED 1
206# define YYLTYPE_IS_TRIVIAL 1
207#endif
208
209
210
211int yyparse (struct parser_params *p);
212
213#endif /* !YY_YY_Y_TAB_H_INCLUDED */
yytokentype
Definition: parse.h:51
@ tBACK_REF
Definition: parse.h:115
@ tGEQ
Definition: parse.h:126
@ keyword_alias
Definition: parse.h:95
@ tLPAREN_ARG
Definition: parse.h:146
@ tBDOT3
Definition: parse.h:135
@ tWORDS_BEG
Definition: parse.h:159
@ tAMPER
Definition: parse.h:153
@ keyword_do_cond
Definition: parse.h:77
@ END_OF_INPUT
Definition: parse.h:52
@ keyword_do_block
Definition: parse.h:78
@ keyword_defined
Definition: parse.h:96
@ tLPAREN
Definition: parse.h:145
@ tASET
Definition: parse.h:137
@ tSTRING_DEND
Definition: parse.h:164
@ tNMATCH
Definition: parse.h:131
@ tCHAR
Definition: parse.h:113
@ keyword_return
Definition: parse.h:80
@ tCONSTANT
Definition: parse.h:106
@ tMATCH
Definition: parse.h:130
@ tFLOAT
Definition: parse.h:110
@ tANDDOT
Definition: parse.h:140
@ tLABEL_END
Definition: parse.h:168
@ tNEQ
Definition: parse.h:125
@ tDOT2
Definition: parse.h:132
@ tEQ
Definition: parse.h:123
@ keyword_module
Definition: parse.h:54
@ tLAMBEG
Definition: parse.h:167
@ tCOLON2
Definition: parse.h:141
@ tCVAR
Definition: parse.h:107
@ tSTRING_DVAR
Definition: parse.h:166
@ keyword_undef
Definition: parse.h:56
@ tLEQ
Definition: parse.h:127
@ tLBRACE
Definition: parse.h:149
@ keyword_redo
Definition: parse.h:73
@ tSTRING_CONTENT
Definition: parse.h:116
@ keyword_false
Definition: parse.h:86
@ keyword_class
Definition: parse.h:53
@ keyword_ensure
Definition: parse.h:59
@ keyword_end
Definition: parse.h:60
@ keyword_and
Definition: parse.h:87
@ keyword_when
Definition: parse.h:67
@ tASSOC
Definition: parse.h:144
@ keyword_retry
Definition: parse.h:74
@ tSYMBOLS_BEG
Definition: parse.h:161
@ tLBRACE_ARG
Definition: parse.h:150
@ tREGEXP_END
Definition: parse.h:117
@ keyword_or
Definition: parse.h:88
@ keyword__ENCODING__
Definition: parse.h:101
@ keyword_do
Definition: parse.h:76
@ keyword_rescue
Definition: parse.h:58
@ keyword_END
Definition: parse.h:98
@ tLSHFT
Definition: parse.h:138
@ tUMINUS
Definition: parse.h:120
@ tBDOT2
Definition: parse.h:134
@ keyword_next
Definition: parse.h:72
@ modifier_if
Definition: parse.h:90
@ tLOWEST
Definition: parse.h:169
@ tSYMBEG
Definition: parse.h:155
@ keyword_nil
Definition: parse.h:84
@ tLABEL
Definition: parse.h:108
@ tSTAR
Definition: parse.h:151
@ tCMP
Definition: parse.h:122
@ keyword_if
Definition: parse.h:61
@ keyword_BEGIN
Definition: parse.h:97
@ tIMAGINARY
Definition: parse.h:112
@ tRSHFT
Definition: parse.h:139
@ tSTRING_DBEG
Definition: parse.h:165
@ tNTH_REF
Definition: parse.h:114
@ tINTEGER
Definition: parse.h:109
@ tSTRING_BEG
Definition: parse.h:156
@ tXSTRING_BEG
Definition: parse.h:157
@ tIVAR
Definition: parse.h:105
@ keyword_then
Definition: parse.h:63
@ modifier_while
Definition: parse.h:92
@ tQSYMBOLS_BEG
Definition: parse.h:162
@ keyword_def
Definition: parse.h:55
@ tDOT3
Definition: parse.h:133
@ keyword__FILE__
Definition: parse.h:100
@ tIDENTIFIER
Definition: parse.h:102
@ keyword_super
Definition: parse.h:82
@ tOP_ASGN
Definition: parse.h:143
@ keyword_while
Definition: parse.h:68
@ tGVAR
Definition: parse.h:104
@ tPOW
Definition: parse.h:121
@ keyword_true
Definition: parse.h:85
@ keyword__LINE__
Definition: parse.h:99
@ keyword_else
Definition: parse.h:65
@ tSTRING_END
Definition: parse.h:163
@ keyword_in
Definition: parse.h:75
@ modifier_unless
Definition: parse.h:91
@ tEQQ
Definition: parse.h:124
@ tRATIONAL
Definition: parse.h:111
@ tUMINUS_NUM
Definition: parse.h:170
@ keyword_unless
Definition: parse.h:62
@ tDSTAR
Definition: parse.h:152
@ tANDOP
Definition: parse.h:128
@ keyword_do_LAMBDA
Definition: parse.h:79
@ tCOLON3
Definition: parse.h:142
@ keyword_for
Definition: parse.h:70
@ modifier_rescue
Definition: parse.h:94
@ tFID
Definition: parse.h:103
@ keyword_not
Definition: parse.h:89
@ tAREF
Definition: parse.h:136
@ keyword_begin
Definition: parse.h:57
@ keyword_self
Definition: parse.h:83
@ tRPAREN
Definition: parse.h:147
@ keyword_break
Definition: parse.h:71
@ keyword_until
Definition: parse.h:69
@ keyword_case
Definition: parse.h:66
@ tSP
Definition: parse.h:118
@ tOROP
Definition: parse.h:129
@ keyword_yield
Definition: parse.h:81
@ tLBRACK
Definition: parse.h:148
@ tQWORDS_BEG
Definition: parse.h:160
@ tREGEXP_BEG
Definition: parse.h:158
@ modifier_until
Definition: parse.h:93
@ tLAST_TOKEN
Definition: parse.h:171
@ tLAMBDA
Definition: parse.h:154
@ keyword_elsif
Definition: parse.h:64
@ tUPLUS
Definition: parse.h:119
int yyparse(struct parser_params *p)
Definition: ripper.c:5742
unsigned long VALUE
unsigned long ID
#define yydebug
Definition: ripper.c:100
Definition: parse.h:199
int last_line
Definition: parse.h:202
int first_column
Definition: parse.h:201
int first_line
Definition: parse.h:200
int last_column
Definition: parse.h:203
Definition: ripper.c:211
Definition: parse.h:178
struct rb_strterm_struct * strterm
Definition: parse.h:186
ID id
Definition: parse.h:182
VALUE val
Definition: parse.h:180
int num
Definition: parse.h:183
NODE * node
Definition: parse.h:181
st_table * tbl
Definition: parse.h:184
const struct vtable * vars
Definition: parse.h:185