source: trunk/src/generated/lolfx-parser.h @ 2786

Last change on this file since 2786 was 2786, checked in by sam, 6 years ago

build: fix PS3 and Android builds.

  • Property svn:keywords set to Id
File size: 18.8 KB
Line 
1/* A Bison parser, made by GNU Bison 2.7.12-4996.  */
2
3/* Skeleton interface for Bison LALR(1) parsers in C++
4   
5      Copyright (C) 2002-2013 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 ** \file generated/lolfx-parser.h
35 ** Define the lol::parser class.
36 */
37
38/* C++ LALR(1) parser skeleton written by Akim Demaille.  */
39
40#ifndef YY_LOL_GENERATED_LOLFX_PARSER_H_INCLUDED
41# define YY_LOL_GENERATED_LOLFX_PARSER_H_INCLUDED
42
43
44
45#include <string>
46#include <iostream>
47#include "stack.hh"
48#include "location.hh"
49
50/* Enabling traces.  */
51#ifndef YYDEBUG
52# define YYDEBUG 1
53#endif
54
55
56namespace lol {
57/* Line 33 of lalr1.cc  */
58#line 59 "generated/lolfx-parser.h"
59
60  /// A Bison parser.
61  class LolFxParser
62  {
63  public:
64    /// Symbol semantic values.
65#ifndef YYSTYPE
66    union semantic_type
67    {
68/* Line 33 of lalr1.cc  */
69#line 34 "gpu/lolfx-parser.y"
70
71    int ival;
72    unsigned uval;
73    float fval;
74    char *sval;
75
76
77/* Line 33 of lalr1.cc  */
78#line 79 "generated/lolfx-parser.h"
79    };
80#else
81    typedef YYSTYPE semantic_type;
82#endif
83    /// Symbol locations.
84    typedef location location_type;
85    /// Tokens.
86    struct token
87    {
88      /* Tokens.  */
89   enum yytokentype {
90     T_END = 0,
91     BOOLCONSTANT = 258,
92     INTCONSTANT = 259,
93     UINTCONSTANT = 260,
94     FLOATCONSTANT = 261,
95     FIELDSELECTION = 262,
96     IDENTIFIER = 263,
97     TYPENAME = 264,
98     GT_SUBROUTINE = 265,
99     GT_PATCH = 266,
100     GT_SAMPLE = 267,
101     GT_FLAT = 268,
102     GT_SMOOTH = 269,
103     GT_LAYOUT = 270,
104     GT_INVARIANT = 271,
105     GT_HIGHP = 272,
106     GT_MEDIUMP = 273,
107     GT_LOWP = 274,
108     GT_PRECISION = 275,
109     GT_ATTRIBUTE = 276,
110     GT_VARYING = 277,
111     GT_VEC2 = 278,
112     GT_VEC3 = 279,
113     GT_VEC4 = 280,
114     GT_BVEC2 = 281,
115     GT_BVEC3 = 282,
116     GT_BVEC4 = 283,
117     GT_DVEC2 = 284,
118     GT_DVEC3 = 285,
119     GT_DVEC4 = 286,
120     GT_IVEC2 = 287,
121     GT_IVEC3 = 288,
122     GT_IVEC4 = 289,
123     GT_UVEC2 = 290,
124     GT_UVEC3 = 291,
125     GT_UVEC4 = 292,
126     GT_MAT2 = 293,
127     GT_MAT2X2 = 294,
128     GT_MAT2X3 = 295,
129     GT_MAT2X4 = 296,
130     GT_MAT3 = 297,
131     GT_MAT3X2 = 298,
132     GT_MAT3X3 = 299,
133     GT_MAT3X4 = 300,
134     GT_MAT4 = 301,
135     GT_MAT4X2 = 302,
136     GT_MAT4X3 = 303,
137     GT_MAT4X4 = 304,
138     GT_DMAT2 = 305,
139     GT_DMAT2X2 = 306,
140     GT_DMAT2X3 = 307,
141     GT_DMAT2X4 = 308,
142     GT_DMAT3 = 309,
143     GT_DMAT3X2 = 310,
144     GT_DMAT3X3 = 311,
145     GT_DMAT3X4 = 312,
146     GT_DMAT4 = 313,
147     GT_DMAT4X2 = 314,
148     GT_DMAT4X3 = 315,
149     GT_DMAT4X4 = 316,
150     GT_SAMPLER1DSHADOW = 317,
151     GT_SAMPLER1DARRAY = 318,
152     GT_SAMPLER1DARRAYSHADOW = 319,
153     GT_SAMPLER2DSHADOW = 320,
154     GT_SAMPLER2DARRAY = 321,
155     GT_SAMPLER2DARRAYSHADOW = 322,
156     GT_SAMPLER2DRECT = 323,
157     GT_SAMPLER2DRECTSHADOW = 324,
158     GT_SAMPLER2DMS = 325,
159     GT_SAMPLER2DMSARRAY = 326,
160     GT_SAMPLERCUBESHADOW = 327,
161     GT_SAMPLERCUBEARRAY = 328,
162     GT_SAMPLERCUBEARRAYSHADOW = 329,
163     GT_SAMPLERBUFFER = 330,
164     GT_ISAMPLER1D = 331,
165     GT_ISAMPLER1DARRAY = 332,
166     GT_ISAMPLER2D = 333,
167     GT_ISAMPLER2DARRAY = 334,
168     GT_ISAMPLER2DRECT = 335,
169     GT_ISAMPLER2DMS = 336,
170     GT_ISAMPLER2DMSARRAY = 337,
171     GT_ISAMPLER3D = 338,
172     GT_ISAMPLERCUBE = 339,
173     GT_ISAMPLERCUBEARRAY = 340,
174     GT_ISAMPLERBUFFER = 341,
175     GT_USAMPLER1D = 342,
176     GT_USAMPLER1DARRAY = 343,
177     GT_USAMPLER2D = 344,
178     GT_USAMPLER2DARRAY = 345,
179     GT_USAMPLER2DRECT = 346,
180     GT_USAMPLER2DMS = 347,
181     GT_USAMPLER2DMSARRAY = 348,
182     GT_USAMPLER3D = 349,
183     GT_USAMPLERCUBE = 350,
184     GT_USAMPLERCUBEARRAY = 351,
185     GT_USAMPLERBUFFER = 352,
186     GHT_BOOL = 353,
187     GHT_BREAK = 354,
188     GHT_CASE = 355,
189     GHT_CENTROID = 356,
190     GHT_CONST = 357,
191     GHT_CONTINUE = 358,
192     GHT_DEFAULT = 359,
193     GHT_DISCARD = 360,
194     GHT_DO = 361,
195     GHT_DOUBLE = 362,
196     GHT_ELSE = 363,
197     GHT_FLOAT = 364,
198     GHT_FOR = 365,
199     GHT_IF = 366,
200     GHT_IN = 367,
201     GHT_INOUT = 368,
202     GHT_INT = 369,
203     GHT_NOPERSPECTIVE = 370,
204     GHT_OUT = 371,
205     GHT_RETURN = 372,
206     GHT_SAMPLER1D = 373,
207     GHT_SAMPLER2D = 374,
208     GHT_SAMPLER3D = 375,
209     GHT_SAMPLERCUBE = 376,
210     GHT_STRUCT = 377,
211     GHT_SWITCH = 378,
212     GHT_UINT = 379,
213     GHT_UNIFORM = 380,
214     GHT_VOID = 381,
215     GHT_WHILE = 382,
216     HGT_BOOL = 383,
217     HGT_BREAK = 384,
218     HGT_CASE = 385,
219     HGT_CENTROID = 386,
220     HGT_CONST = 387,
221     HGT_CONTINUE = 388,
222     HGT_DEFAULT = 389,
223     HGT_DISCARD = 390,
224     HGT_DO = 391,
225     HGT_DOUBLE = 392,
226     HGT_ELSE = 393,
227     HGT_FLOAT = 394,
228     HGT_FOR = 395,
229     HGT_IF = 396,
230     HGT_IN = 397,
231     HGT_INOUT = 398,
232     HGT_INT = 399,
233     HGT_NOPERSPECTIVE = 400,
234     HGT_OUT = 401,
235     HGT_RETURN = 402,
236     HGT_SAMPLER1D = 403,
237     HGT_SAMPLER2D = 404,
238     HGT_SAMPLER3D = 405,
239     HGT_SAMPLERCUBE = 406,
240     HGT_STRUCT = 407,
241     HGT_SWITCH = 408,
242     HGT_UINT = 409,
243     HGT_UNIFORM = 410,
244     HGT_VOID = 411,
245     HGT_WHILE = 412,
246     HT_APPENDSTRUCTUREDBUFFER = 413,
247     HT_ASM = 414,
248     HT_ASM_FRAGMENT = 415,
249     HT_BLENDSTATE = 416,
250     HT_BUFFER = 417,
251     HT_BYTEADDRESSBUFFER = 418,
252     HT_CBUFFER = 419,
253     HT_COLUMN_MAJOR = 420,
254     HT_COMPILE = 421,
255     HT_COMPILE_FRAGMENT = 422,
256     HT_COMPILESHADER = 423,
257     HT_COMPUTESHADER = 424,
258     HT_CONSUMESTRUCTUREDBUFFER = 425,
259     HT_DEPTHSTENCILSTATE = 426,
260     HT_DEPTHSTENCILVIEW = 427,
261     HT_DOMAINSHADER = 428,
262     HT_DWORD = 429,
263     HT_EXTERN = 430,
264     HT_FALSE = 431,
265     HT_FXGROUP = 432,
266     HT_GEOMETRYSHADER = 433,
267     HT_GROUPSHARED = 434,
268     HT_HALF = 435,
269     HT_HULLSHADER = 436,
270     HT_INLINE = 437,
271     HT_INPUTPATCH = 438,
272     HT_INTERFACE = 439,
273     HT_LINE = 440,
274     HT_LINEADJ = 441,
275     HT_LINEAR = 442,
276     HT_LINESTREAM = 443,
277     HT_MATRIX = 444,
278     HT_NAMESPACE = 445,
279     HT_NOINTERPOLATION = 446,
280     HT_NULL = 447,
281     HT_OUTPUTPATCH = 448,
282     HT_PACKOFFSET = 449,
283     HT_PASS = 450,
284     HT_PIXELFRAGMENT = 451,
285     HT_PIXELSHADER = 452,
286     HT_POINT = 453,
287     HT_POINTSTREAM = 454,
288     HT_PRECISE = 455,
289     HT_RASTERIZERSTATE = 456,
290     HT_RENDERTARGETVIEW = 457,
291     HT_REGISTER = 458,
292     HT_ROW_MAJOR = 459,
293     HT_RWBUFFER = 460,
294     HT_RWBYTEADDRESSBUFFER = 461,
295     HT_RWSTRUCTUREDBUFFER = 462,
296     HT_RWTEXTURE1D = 463,
297     HT_RWTEXTURE1DARRAY = 464,
298     HT_RWTEXTURE2D = 465,
299     HT_RWTEXTURE2DARRAY = 466,
300     HT_RWTEXTURE3D = 467,
301     HT_SAMPLER = 468,
302     HT_SAMPLER_STATE = 469,
303     HT_SAMPLERSTATE = 470,
304     HT_SAMPLERCOMPARISONSTATE = 471,
305     HT_SHARED = 472,
306     HT_SNORM = 473,
307     HT_STATEBLOCK = 474,
308     HT_STATEBLOCK_STATE = 475,
309     HT_STATIC = 476,
310     HT_STRING = 477,
311     HT_STRUCTUREDBUFFER = 478,
312     HT_TBUFFER = 479,
313     HT_TECHNIQUE = 480,
314     HT_TECHNIQUE10 = 481,
315     HT_TECHNIQUE11XZ = 482,
316     HT_TEXTURE = 483,
317     HT_TEXTURE1D = 484,
318     HT_TEXTURE1DARRAY = 485,
319     HT_TEXTURE2D = 486,
320     HT_TEXTURE2DARRAY = 487,
321     HT_TEXTURE2DMS = 488,
322     HT_TEXTURE2DMSARRAY = 489,
323     HT_TEXTURE3D = 490,
324     HT_TEXTURECUBE = 491,
325     HT_TEXTURECUBEARRAY = 492,
326     HT_TRUE = 493,
327     HT_TYPEDEF = 494,
328     HT_TRIANGLE = 495,
329     HT_TRIANGLEADJ = 496,
330     HT_TRIANGLESTREAM = 497,
331     HT_UNORM = 498,
332     HT_VECTOR = 499,
333     HT_VERTEXFRAGMENT = 500,
334     HT_VERTEXSHADER = 501,
335     HT_VOLATILE = 502,
336     HT_BOOL1 = 503,
337     HT_BOOL1x1 = 504,
338     HT_BOOL2x1 = 505,
339     HT_BOOL3x1 = 506,
340     HT_BOOL4x1 = 507,
341     HT_BOOL2 = 508,
342     HT_BOOL1x2 = 509,
343     HT_BOOL2x2 = 510,
344     HT_BOOL3x2 = 511,
345     HT_BOOL4x2 = 512,
346     HT_BOOL3 = 513,
347     HT_BOOL1x3 = 514,
348     HT_BOOL2x3 = 515,
349     HT_BOOL3x3 = 516,
350     HT_BOOL4x3 = 517,
351     HT_BOOL4 = 518,
352     HT_BOOL1x4 = 519,
353     HT_BOOL2x4 = 520,
354     HT_BOOL3x4 = 521,
355     HT_BOOL4x4 = 522,
356     HT_FLOAT1 = 523,
357     HT_FLOAT1x1 = 524,
358     HT_FLOAT2x1 = 525,
359     HT_FLOAT3x1 = 526,
360     HT_FLOAT4x1 = 527,
361     HT_FLOAT2 = 528,
362     HT_FLOAT1x2 = 529,
363     HT_FLOAT2x2 = 530,
364     HT_FLOAT3x2 = 531,
365     HT_FLOAT4x2 = 532,
366     HT_FLOAT3 = 533,
367     HT_FLOAT1x3 = 534,
368     HT_FLOAT2x3 = 535,
369     HT_FLOAT3x3 = 536,
370     HT_FLOAT4x3 = 537,
371     HT_FLOAT4 = 538,
372     HT_FLOAT1x4 = 539,
373     HT_FLOAT2x4 = 540,
374     HT_FLOAT3x4 = 541,
375     HT_FLOAT4x4 = 542,
376     HT_DOUBLE1 = 543,
377     HT_DOUBLE1x1 = 544,
378     HT_DOUBLE2x1 = 545,
379     HT_DOUBLE3x1 = 546,
380     HT_DOUBLE4x1 = 547,
381     HT_DOUBLE2 = 548,
382     HT_DOUBLE1x2 = 549,
383     HT_DOUBLE2x2 = 550,
384     HT_DOUBLE3x2 = 551,
385     HT_DOUBLE4x2 = 552,
386     HT_DOUBLE3 = 553,
387     HT_DOUBLE1x3 = 554,
388     HT_DOUBLE2x3 = 555,
389     HT_DOUBLE3x3 = 556,
390     HT_DOUBLE4x3 = 557,
391     HT_DOUBLE4 = 558,
392     HT_DOUBLE1x4 = 559,
393     HT_DOUBLE2x4 = 560,
394     HT_DOUBLE3x4 = 561,
395     HT_DOUBLE4x4 = 562,
396     HT_DWORD1 = 563,
397     HT_DWORD1x1 = 564,
398     HT_DWORD2x1 = 565,
399     HT_DWORD3x1 = 566,
400     HT_DWORD4x1 = 567,
401     HT_DWORD2 = 568,
402     HT_DWORD1x2 = 569,
403     HT_DWORD2x2 = 570,
404     HT_DWORD3x2 = 571,
405     HT_DWORD4x2 = 572,
406     HT_DWORD3 = 573,
407     HT_DWORD1x3 = 574,
408     HT_DWORD2x3 = 575,
409     HT_DWORD3x3 = 576,
410     HT_DWORD4x3 = 577,
411     HT_DWORD4 = 578,
412     HT_DWORD1x4 = 579,
413     HT_DWORD2x4 = 580,
414     HT_DWORD3x4 = 581,
415     HT_DWORD4x4 = 582,
416     HT_INT1 = 583,
417     HT_INT1x1 = 584,
418     HT_INT2x1 = 585,
419     HT_INT3x1 = 586,
420     HT_INT4x1 = 587,
421     HT_INT2 = 588,
422     HT_INT1x2 = 589,
423     HT_INT2x2 = 590,
424     HT_INT3x2 = 591,
425     HT_INT4x2 = 592,
426     HT_INT3 = 593,
427     HT_INT1x3 = 594,
428     HT_INT2x3 = 595,
429     HT_INT3x3 = 596,
430     HT_INT4x3 = 597,
431     HT_INT4 = 598,
432     HT_INT1x4 = 599,
433     HT_INT2x4 = 600,
434     HT_INT3x4 = 601,
435     HT_INT4x4 = 602,
436     HT_UINT1 = 603,
437     HT_UINT1x1 = 604,
438     HT_UINT2x1 = 605,
439     HT_UINT3x1 = 606,
440     HT_UINT4x1 = 607,
441     HT_UINT2 = 608,
442     HT_UINT1x2 = 609,
443     HT_UINT2x2 = 610,
444     HT_UINT3x2 = 611,
445     HT_UINT4x2 = 612,
446     HT_UINT3 = 613,
447     HT_UINT1x3 = 614,
448     HT_UINT2x3 = 615,
449     HT_UINT3x3 = 616,
450     HT_UINT4x3 = 617,
451     HT_UINT4 = 618,
452     HT_UINT1x4 = 619,
453     HT_UINT2x4 = 620,
454     HT_UINT3x4 = 621,
455     HT_UINT4x4 = 622,
456     PREPROCESSOR_DEFINE = 623,
457     PREPROCESSOR_ELIF = 624,
458     PREPROCESSOR_ELSE = 625,
459     PREPROCESSOR_ENDIF = 626,
460     PREPROCESSOR_ERROR = 627,
461     PREPROCESSOR_IF = 628,
462     PREPROCESSOR_IFDEF = 629,
463     PREPROCESSOR_IFNDEF = 630,
464     PREPROCESSOR_INCLUDE = 631,
465     PREPROCESSOR_LINE = 632,
466     PREPROCESSOR_PRAGMA = 633,
467     PREPROCESSOR_UNDEF = 634,
468     PREPROCESSOR_REGION = 635,
469     HT_AUTO = 636,
470     HT_CATCH = 637,
471     HT_CHAR = 638,
472     HT_CLASS = 639,
473     HT_CONST_CAST = 640,
474     HT_DELETE = 641,
475     HT_DYNAMIC_CAST = 642,
476     HT_ENUM = 643,
477     HT_EXPLICIT = 644,
478     HT_FRIEND = 645,
479     HT_GOTO = 646,
480     HT_LONG = 647,
481     HT_MUTABLE = 648,
482     HT_NEW = 649,
483     HT_OPERATOR = 650,
484     HT_PRIVATE = 651,
485     HT_PROTECTED = 652,
486     HT_PUBLIC = 653,
487     HT_REINTERPRET_CAST = 654,
488     HT_SHORT = 655,
489     HT_SIGNED = 656,
490     HT_SIZEOF = 657,
491     HT_STATIC_CAST = 658,
492     HT_TEMPLATE = 659,
493     HT_THIS = 660,
494     HT_THROW = 661,
495     HT_TRY = 662,
496     HT_TYPENAME = 663,
497     HT_UNION = 664,
498     HT_UNSIGNED = 665,
499     HT_USING = 666,
500     HT_VIRTUAL = 667,
501     T_INC = 668,
502     T_DEC = 669,
503     T_LE = 670,
504     T_GE = 671,
505     T_EQ = 672,
506     T_NE = 673,
507     T_LEFT = 674,
508     T_RIGHT = 675,
509     T_AND = 676,
510     T_OR = 677,
511     T_XOR = 678,
512     T_MULEQ = 679,
513     T_DIVEQ = 680,
514     T_MODEQ = 681,
515     T_ADDEQ = 682,
516     T_SUBEQ = 683,
517     T_LEFTEQ = 684,
518     T_RIGHTEQ = 685,
519     T_ANDEQ = 686,
520     T_XOREQ = 687,
521     T_OREQ = 688,
522     FLOAT = 689,
523     STRING = 690,
524     NAME = 691,
525     T_ERROR = 692
526   };
527
528    };
529    /// Token type.
530    typedef token::yytokentype token_type;
531
532    /// Build a parser object.
533    LolFxParser (class LolFxCompiler& mc_yyarg);
534    virtual ~LolFxParser ();
535
536    /// Parse.
537    /// \returns  0 iff parsing succeeded.
538    virtual int parse ();
539
540#if YYDEBUG
541    /// The current debugging stream.
542    std::ostream& debug_stream () const;
543    /// Set the current debugging stream.
544    void set_debug_stream (std::ostream &);
545
546    /// Type for debugging levels.
547    typedef int debug_level_type;
548    /// The current debugging level.
549    debug_level_type debug_level () const;
550    /// Set the current debugging level.
551    void set_debug_level (debug_level_type l);
552#endif
553
554  private:
555    /// This class is not copyable.
556    LolFxParser (const LolFxParser&);
557    LolFxParser& operator= (const LolFxParser&);
558
559    /// Report a syntax error.
560    /// \param loc    where the syntax error is found.
561    /// \param msg    a description of the syntax error.
562    virtual void error (const location_type& loc, const std::string& msg);
563
564    /// Generate an error message.
565    /// \param state   the state where the error occurred.
566    /// \param tok     the lookahead token.
567    virtual std::string yysyntax_error_ (int yystate, int tok);
568
569#if YYDEBUG
570    /// \brief Report a symbol value on the debug stream.
571    /// \param yytype       The token type.
572    /// \param yyvaluep     Its semantic value.
573    /// \param yylocationp  Its location.
574    virtual void yy_symbol_value_print_ (int yytype,
575                                         const semantic_type* yyvaluep,
576                                         const location_type* yylocationp);
577    /// \brief Report a symbol on the debug stream.
578    /// \param yytype       The token type.
579    /// \param yyvaluep     Its semantic value.
580    /// \param yylocationp  Its location.
581    virtual void yy_symbol_print_ (int yytype,
582                                   const semantic_type* yyvaluep,
583                                   const location_type* yylocationp);
584#endif
585
586
587    /// State numbers.
588    typedef int state_type;
589    /// State stack type.
590    typedef stack<state_type>    state_stack_type;
591    /// Semantic value stack type.
592    typedef stack<semantic_type> semantic_stack_type;
593    /// location stack type.
594    typedef stack<location_type> location_stack_type;
595
596    /// The state stack.
597    state_stack_type yystate_stack_;
598    /// The semantic value stack.
599    semantic_stack_type yysemantic_stack_;
600    /// The location stack.
601    location_stack_type yylocation_stack_;
602
603    /// Whether the given \c yypact_ value indicates a defaulted state.
604    /// \param yyvalue   the value to check
605    static bool yy_pact_value_is_default_ (int yyvalue);
606
607    /// Whether the given \c yytable_ value indicates a syntax error.
608    /// \param yyvalue   the value to check
609    static bool yy_table_value_is_error_ (int yyvalue);
610
611    /// Internal symbol numbers.
612    typedef unsigned short int token_number_type;
613    /* Tables.  */
614    /// For a state, the index in \a yytable_ of its portion.
615    static const short int yypact_[];
616    static const short int yypact_ninf_;
617
618    /// For a state, default reduction number.
619    /// Unless\a  yytable_ specifies something else to do.
620    /// Zero means the default is an error.
621    static const unsigned short int yydefact_[];
622
623    static const short int yypgoto_[];
624    static const short int yydefgoto_[];
625
626    /// What to do in a state.
627    /// \a yytable_[yypact_[s]]: what to do in state \a s.
628    /// - if positive, shift that token.
629    /// - if negative, reduce the rule which number is the opposite.
630    /// - if zero, do what YYDEFACT says.
631    static const short int yytable_[];
632    static const short int yytable_ninf_;
633
634    static const short int yycheck_[];
635
636    /// For a state, its accessing symbol.
637    static const unsigned short int yystos_[];
638
639    /// For a rule, its LHS.
640    static const unsigned short int yyr1_[];
641    /// For a rule, its RHS length.
642    static const unsigned char yyr2_[];
643
644    /// Convert the symbol name \a n to a form suitable for a diagnostic.
645    static std::string yytnamerr_ (const char *n);
646
647
648    /// For a symbol, its name in clear.
649    static const char* const yytname_[];
650#if YYDEBUG
651    /// A type to store symbol numbers and -1.
652    typedef short int rhs_number_type;
653    /// A `-1'-separated list of the rules' RHS.
654    static const rhs_number_type yyrhs_[];
655    /// For each rule, the index of the first RHS symbol in \a yyrhs_.
656    static const unsigned short int yyprhs_[];
657    /// For each rule, its source line number.
658    static const unsigned short int yyrline_[];
659    /// For each scanner token number, its symbol number.
660    static const unsigned short int yytoken_number_[];
661    /// Report on the debug stream that the rule \a r is going to be reduced.
662    virtual void yy_reduce_print_ (int r);
663    /// Print the state stack on the debug stream.
664    virtual void yystack_print_ ();
665
666    /* Debugging.  */
667    int yydebug_;
668    std::ostream* yycdebug_;
669#endif
670
671    /// Convert a scanner token number \a t to a symbol number.
672    token_number_type yytranslate_ (int t);
673
674    /// \brief Reclaim the memory associated to a symbol.
675    /// \param yymsg        Why this token is reclaimed.
676    ///                     If null, do not display the symbol, just free it.
677    /// \param yytype       The symbol type.
678    /// \param yyvaluep     Its semantic value.
679    /// \param yylocationp  Its location.
680    inline void yydestruct_ (const char* yymsg,
681                             int yytype,
682                             semantic_type* yyvaluep,
683                             location_type* yylocationp);
684
685    /// Pop \a n symbols the three stacks.
686    inline void yypop_ (unsigned int n = 1);
687
688    /* Constants.  */
689    static const int yyeof_;
690    /* LAST_ -- Last index in TABLE_.  */
691    static const int yylast_;
692    static const int yynnts_;
693    static const int yyempty_;
694    static const int yyfinal_;
695    static const int yyterror_;
696    static const int yyerrcode_;
697    static const int yyntokens_;
698    static const unsigned int yyuser_token_number_max_;
699    static const token_number_type yyundef_token_;
700
701    /* User arguments.  */
702    class LolFxCompiler& mc;
703  };
704
705} // lol
706/* Line 33 of lalr1.cc  */
707#line 708 "generated/lolfx-parser.h"
708
709
710
711#endif /* !YY_LOL_GENERATED_LOLFX_PARSER_H_INCLUDED  */
Note: See TracBrowser for help on using the repository browser.