ScummVM API documentation
lingo-gr.h
1 /* A Bison parser, made by GNU Bison 3.8.2. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 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 <https://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 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35  especially those whose name start with YY_ or yy_. They are
36  private implementation details that can be changed or removed. */
37 
38 #ifndef YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_H_INCLUDED
39 # define YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_H_INCLUDED
40 /* Debug traces. */
41 #ifndef YYDEBUG
42 # define YYDEBUG 1
43 #endif
44 #if YYDEBUG
45 extern int yydebug;
46 #endif
47 
48 /* Token kinds. */
49 #ifndef YYTOKENTYPE
50 # define YYTOKENTYPE
51  enum yytokentype
52  {
53  YYEMPTY = -2,
54  YYEOF = 0, /* "end of file" */
55  YYerror = 256, /* error */
56  YYUNDEF = 257, /* "invalid token" */
57  tUNARY = 258, /* tUNARY */
58  tINT = 259, /* tINT */
59  tFLOAT = 260, /* tFLOAT */
60  tVARID = 261, /* tVARID */
61  tSTRING = 262, /* tSTRING */
62  tSYMBOL = 263, /* tSYMBOL */
63  tENDCLAUSE = 264, /* tENDCLAUSE */
64  tCAST = 265, /* tCAST */
65  tFIELD = 266, /* tFIELD */
66  tSCRIPT = 267, /* tSCRIPT */
67  tWINDOW = 268, /* tWINDOW */
68  tDELETE = 269, /* tDELETE */
69  tDOWN = 270, /* tDOWN */
70  tELSE = 271, /* tELSE */
71  tEXIT = 272, /* tEXIT */
72  tFRAME = 273, /* tFRAME */
73  tGLOBAL = 274, /* tGLOBAL */
74  tGO = 275, /* tGO */
75  tHILITE = 276, /* tHILITE */
76  tIF = 277, /* tIF */
77  tIN = 278, /* tIN */
78  tINTO = 279, /* tINTO */
79  tMACRO = 280, /* tMACRO */
80  tRETURN = 281, /* tRETURN */
81  tMOVIE = 282, /* tMOVIE */
82  tNEXT = 283, /* tNEXT */
83  tOF = 284, /* tOF */
84  tPREVIOUS = 285, /* tPREVIOUS */
85  tPUT = 286, /* tPUT */
86  tREPEAT = 287, /* tREPEAT */
87  tSET = 288, /* tSET */
88  tTHEN = 289, /* tTHEN */
89  tTO = 290, /* tTO */
90  tWHEN = 291, /* tWHEN */
91  tWITH = 292, /* tWITH */
92  tWHILE = 293, /* tWHILE */
93  tFACTORY = 294, /* tFACTORY */
94  tOPEN = 295, /* tOPEN */
95  tPLAY = 296, /* tPLAY */
96  tINSTANCE = 297, /* tINSTANCE */
97  tGE = 298, /* tGE */
98  tLE = 299, /* tLE */
99  tEQ = 300, /* tEQ */
100  tNEQ = 301, /* tNEQ */
101  tAND = 302, /* tAND */
102  tOR = 303, /* tOR */
103  tNOT = 304, /* tNOT */
104  tMOD = 305, /* tMOD */
105  tAFTER = 306, /* tAFTER */
106  tBEFORE = 307, /* tBEFORE */
107  tCONCAT = 308, /* tCONCAT */
108  tCONTAINS = 309, /* tCONTAINS */
109  tSTARTS = 310, /* tSTARTS */
110  tCHAR = 311, /* tCHAR */
111  tCHARS = 312, /* tCHARS */
112  tITEM = 313, /* tITEM */
113  tITEMS = 314, /* tITEMS */
114  tLINE = 315, /* tLINE */
115  tLINES = 316, /* tLINES */
116  tWORD = 317, /* tWORD */
117  tWORDS = 318, /* tWORDS */
118  tABBREVIATED = 319, /* tABBREVIATED */
119  tABBREV = 320, /* tABBREV */
120  tABBR = 321, /* tABBR */
121  tLONG = 322, /* tLONG */
122  tSHORT = 323, /* tSHORT */
123  tDATE = 324, /* tDATE */
124  tLAST = 325, /* tLAST */
125  tMENU = 326, /* tMENU */
126  tMENUS = 327, /* tMENUS */
127  tMENUITEM = 328, /* tMENUITEM */
128  tMENUITEMS = 329, /* tMENUITEMS */
129  tNUMBER = 330, /* tNUMBER */
130  tTHE = 331, /* tTHE */
131  tTIME = 332, /* tTIME */
132  tXTRAS = 333, /* tXTRAS */
133  tCASTLIBS = 334, /* tCASTLIBS */
134  tSOUND = 335, /* tSOUND */
135  tSPRITE = 336, /* tSPRITE */
136  tINTERSECTS = 337, /* tINTERSECTS */
137  tWITHIN = 338, /* tWITHIN */
138  tTELL = 339, /* tTELL */
139  tPROPERTY = 340, /* tPROPERTY */
140  tON = 341, /* tON */
141  tMETHOD = 342, /* tMETHOD */
142  tENDIF = 343, /* tENDIF */
143  tENDREPEAT = 344, /* tENDREPEAT */
144  tENDTELL = 345, /* tENDTELL */
145  tASSERTERROR = 346 /* tASSERTERROR */
146  };
147  typedef enum yytokentype yytoken_kind_t;
148 #endif
149 
150 /* Value type. */
151 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
152 union YYSTYPE
153 {
154 #line 118 "engines/director/lingo/lingo-gr.y"
155 
156  Common::String *s;
157  int i;
158  double f;
159  Director::ChunkType chunktype;
160  struct {
161  Common::String *eventName;
162  Common::String *stmt;
163  } w;
164 
165  Director::IDList *idlist;
166  Director::Node *node;
167  Director::NodeList *nodelist;
168 
169 #line 170 "engines/director/lingo/lingo-gr.h"
170 
171 };
172 typedef union YYSTYPE YYSTYPE;
173 # define YYSTYPE_IS_TRIVIAL 1
174 # define YYSTYPE_IS_DECLARED 1
175 #endif
176 
177 
178 extern YYSTYPE yylval;
179 
180 
181 int yyparse (void);
182 
183 
184 #endif /* !YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_H_INCLUDED */
Definition: str.h:59
Definition: array.h:52
Definition: lingo-gr.h:152
Definition: lingo-ast.h:220