LEFT | RIGHT |
1 /* A Bison parser, made by GNU Bison 2.5. */ | 1 /* A Bison parser, made by GNU Bison 2.5. */ |
2 | 2 |
3 /* Bison implementation for Yacc-like parsers in C | 3 /* Bison implementation for Yacc-like parsers in C |
4 ··· | 4 ··· |
5 Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. | 5 Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. |
6 ··· | 6 ··· |
7 This program is free software: you can redistribute it and/or modify | 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 | 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 | 9 the Free Software Foundation, either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 /* Copy the first part of user declarations. */ | 66 /* Copy the first part of user declarations. */ |
67 | 67 |
68 /* Line 268 of yacc.c */ | 68 /* Line 268 of yacc.c */ |
69 #line 31 "a.y" | 69 #line 31 "a.y" |
70 | 70 |
71 #include <u.h> | 71 #include <u.h> |
72 #include <stdio.h> /* if we don't, bison will, and a.h re-#defines getc */ | 72 #include <stdio.h> /* if we don't, bison will, and a.h re-#defines getc */ |
73 #include <libc.h> | 73 #include <libc.h> |
74 #include "a.h" | 74 #include "a.h" |
| 75 #include "../../pkg/runtime/funcdata.h" |
75 | 76 |
76 | 77 |
77 /* Line 268 of yacc.c */ | 78 /* Line 268 of yacc.c */ |
78 #line 79 "y.tab.c" | 79 #line 80 "y.tab.c" |
79 | 80 |
80 /* Enabling traces. */ | 81 /* Enabling traces. */ |
81 #ifndef YYDEBUG | 82 #ifndef YYDEBUG |
82 # define YYDEBUG 0 | 83 # define YYDEBUG 0 |
83 #endif | 84 #endif |
84 | 85 |
85 /* Enabling verbose error messages. */ | 86 /* Enabling verbose error messages. */ |
86 #ifdef YYERROR_VERBOSE | 87 #ifdef YYERROR_VERBOSE |
87 # undef YYERROR_VERBOSE | 88 # undef YYERROR_VERBOSE |
88 # define YYERROR_VERBOSE 1 | 89 # define YYERROR_VERBOSE 1 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 #define LVAR 292 | 178 #define LVAR 292 |
178 | 179 |
179 | 180 |
180 | 181 |
181 | 182 |
182 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED | 183 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
183 typedef union YYSTYPE | 184 typedef union YYSTYPE |
184 { | 185 { |
185 | 186 |
186 /* Line 293 of yacc.c */ | 187 /* Line 293 of yacc.c */ |
187 #line 37 "a.y" | 188 #line 38 "a.y" |
188 | 189 |
189 Sym *sym; | 190 Sym *sym; |
190 vlong lval; | 191 vlong lval; |
191 double dval; | 192 double dval; |
192 char sval[8]; | 193 char sval[8]; |
193 Gen gen; | 194 Gen gen; |
194 Gen2 gen2; | 195 Gen2 gen2; |
195 | 196 |
196 | 197 |
197 | 198 |
198 /* Line 293 of yacc.c */ | 199 /* Line 293 of yacc.c */ |
199 #line 200 "y.tab.c" | 200 #line 201 "y.tab.c" |
200 } YYSTYPE; | 201 } YYSTYPE; |
201 # define YYSTYPE_IS_TRIVIAL 1 | 202 # define YYSTYPE_IS_TRIVIAL 1 |
202 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ | 203 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
203 # define YYSTYPE_IS_DECLARED 1 | 204 # define YYSTYPE_IS_DECLARED 1 |
204 #endif | 205 #endif |
205 | 206 |
206 | 207 |
207 /* Copy the second part of user declarations. */ | 208 /* Copy the second part of user declarations. */ |
208 | 209 |
209 | 210 |
210 /* Line 343 of yacc.c */ | 211 /* Line 343 of yacc.c */ |
211 #line 212 "y.tab.c" | 212 #line 213 "y.tab.c" |
212 | 213 |
213 #ifdef short | 214 #ifdef short |
214 # undef short | 215 # undef short |
215 #endif | 216 #endif |
216 | 217 |
217 #ifdef YYTYPE_UINT8 | 218 #ifdef YYTYPE_UINT8 |
218 typedef YYTYPE_UINT8 yytype_uint8; | 219 typedef YYTYPE_UINT8 yytype_uint8; |
219 #else | 220 #else |
220 typedef unsigned char yytype_uint8; | 221 typedef unsigned char yytype_uint8; |
221 #endif | 222 #endif |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 -1, 9, 32, 9, 32, -1, 95, -1, 97, 8, | 549 -1, 9, 32, 9, 32, -1, 95, -1, 97, 8, |
549 97, -1, 97, 9, 97, -1, 97, 10, 97, -1, | 550 97, -1, 97, 9, 97, -1, 97, 10, 97, -1, |
550 97, 11, 97, -1, 97, 12, 97, -1, 97, 6, | 551 97, 11, 97, -1, 97, 12, 97, -1, 97, 6, |
551 6, 97, -1, 97, 7, 7, 97, -1, 97, 5, | 552 6, 97, -1, 97, 7, 7, 97, -1, 97, 5, |
552 97, -1, 97, 4, 97, -1, 97, 3, 97, -1 | 553 97, -1, 97, 4, 97, -1, 97, 3, 97, -1 |
553 }; | 554 }; |
554 | 555 |
555 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ | 556 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
556 static const yytype_uint16 yyrline[] = | 557 static const yytype_uint16 yyrline[] = |
557 { | 558 { |
558 0, 65, 65, 67, 66, 74, 73, 81, 80, 86, | 559 0, 66, 66, 68, 67, 75, 74, 82, 81, 87, |
559 87, 88, 91, 96, 102, 103, 104, 105, 106, 107, | 560 88, 89, 92, 97, 103, 104, 105, 106, 107, 108, |
560 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, | 561 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, |
561 118, 119, 120, 123, 127, 134, 141, 148, 153, 160, | 562 119, 120, 121, 124, 128, 135, 142, 149, 154, 161, |
562 165, 172, 177, 182, 189, 197, 202, 210, 215, 222, | 563 166, 173, 178, 183, 190, 198, 203, 211, 216, 223, |
563 223, 226, 231, 241, 246, 256, 261, 266, 273, 281, | 564 224, 227, 232, 242, 247, 257, 262, 267, 274, 282, |
564 291, 295, 302, 307, 315, 324, 335, 336, 339, 340, | 565 292, 296, 303, 308, 316, 325, 336, 337, 340, 341, |
565 341, 345, 349, 350, 353, 354, 357, 363, 372, 381, | 566 342, 346, 350, 351, 354, 355, 358, 364, 373, 382, |
566 386, 391, 396, 401, 406, 411, 417, 425, 431, 442, | 567 387, 392, 397, 402, 407, 412, 418, 426, 432, 443, |
567 448, 454, 460, 466, 474, 475, 478, 484, 490, 496, | 568 449, 455, 461, 467, 475, 476, 479, 485, 491, 497, |
568 502, 511, 520, 525, 530, 538, 548, 552, 561, 568, | 569 503, 512, 521, 526, 531, 539, 549, 553, 562, 569, |
569 577, 580, 584, 590, 591, 595, 598, 599, 603, 607, | 570 578, 581, 585, 591, 592, 596, 599, 600, 604, 608, |
570 611, 615, 621, 626, 631, 636, 643, 644, 648, 652, | 571 612, 616, 622, 627, 632, 637, 644, 645, 649, 653, |
571 656, 660, 664, 668, 672, 676, 680 | 572 657, 661, 665, 669, 673, 677, 681 |
572 }; | 573 }; |
573 #endif | 574 #endif |
574 | 575 |
575 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE | 576 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE |
576 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. | 577 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
577 First, the terminals, then, starting at YYNTOKENS, nonterminals. */ | 578 First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
578 static const char *const yytname[] = | 579 static const char *const yytname[] = |
579 { | 580 { |
580 "$end", "error", "$undefined", "'|'", "'^'", "'&'", "'<'", "'>'", "'+'", | 581 "$end", "error", "$undefined", "'|'", "'^'", "'&'", "'<'", "'>'", "'+'", |
581 "'-'", "'*'", "'/'", "'%'", "LTYPE0", "LTYPE1", "LTYPE2", "LTYPE3", | 582 "'-'", "'*'", "'/'", "'%'", "LTYPE0", "LTYPE1", "LTYPE2", "LTYPE3", |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1168 | 1169 |
1169 #ifndef YYMAXDEPTH | 1170 #ifndef YYMAXDEPTH |
1170 # define YYMAXDEPTH 10000 | 1171 # define YYMAXDEPTH 10000 |
1171 #endif | 1172 #endif |
1172 | 1173 |
1173 | 1174 |
1174 | 1175 |
1175 | 1176 |
1176 #if YYERROR_VERBOSE | 1177 #if YYERROR_VERBOSE |
1177 | 1178 |
LEFT | RIGHT |