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
45extern 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 tMEMBER = 269, /* tMEMBER */
69 tCASTLIB = 270, /* tCASTLIB */
70 tDELETE = 271, /* tDELETE */
71 tDOWN = 272, /* tDOWN */
72 tELSE = 273, /* tELSE */
73 tEXIT = 274, /* tEXIT */
74 tFRAME = 275, /* tFRAME */
75 tGLOBAL = 276, /* tGLOBAL */
76 tGO = 277, /* tGO */
77 tHILITE = 278, /* tHILITE */
78 tIF = 279, /* tIF */
79 tIN = 280, /* tIN */
80 tINTO = 281, /* tINTO */
81 tMACRO = 282, /* tMACRO */
82 tRETURN = 283, /* tRETURN */
83 tMOVIE = 284, /* tMOVIE */
84 tNEXT = 285, /* tNEXT */
85 tOF = 286, /* tOF */
86 tPREVIOUS = 287, /* tPREVIOUS */
87 tPUT = 288, /* tPUT */
88 tREPEAT = 289, /* tREPEAT */
89 tSET = 290, /* tSET */
90 tTHEN = 291, /* tTHEN */
91 tTO = 292, /* tTO */
92 tWHEN = 293, /* tWHEN */
93 tWITH = 294, /* tWITH */
94 tWHILE = 295, /* tWHILE */
95 tFACTORY = 296, /* tFACTORY */
96 tOPEN = 297, /* tOPEN */
97 tPLAY = 298, /* tPLAY */
98 tINSTANCE = 299, /* tINSTANCE */
99 tGE = 300, /* tGE */
100 tLE = 301, /* tLE */
101 tEQ = 302, /* tEQ */
102 tNEQ = 303, /* tNEQ */
103 tAND = 304, /* tAND */
104 tOR = 305, /* tOR */
105 tNOT = 306, /* tNOT */
106 tMOD = 307, /* tMOD */
107 tAFTER = 308, /* tAFTER */
108 tBEFORE = 309, /* tBEFORE */
109 tCONCAT = 310, /* tCONCAT */
110 tCONTAINS = 311, /* tCONTAINS */
111 tSTARTS = 312, /* tSTARTS */
112 tCHAR = 313, /* tCHAR */
113 tCHARS = 314, /* tCHARS */
114 tITEM = 315, /* tITEM */
115 tITEMS = 316, /* tITEMS */
116 tLINE = 317, /* tLINE */
117 tLINES = 318, /* tLINES */
118 tWORD = 319, /* tWORD */
119 tWORDS = 320, /* tWORDS */
120 tABBREVIATED = 321, /* tABBREVIATED */
121 tABBREV = 322, /* tABBREV */
122 tABBR = 323, /* tABBR */
123 tLONG = 324, /* tLONG */
124 tSHORT = 325, /* tSHORT */
125 tDATE = 326, /* tDATE */
126 tLAST = 327, /* tLAST */
127 tMENU = 328, /* tMENU */
128 tMENUS = 329, /* tMENUS */
129 tMENUITEM = 330, /* tMENUITEM */
130 tMENUITEMS = 331, /* tMENUITEMS */
131 tNUMBER = 332, /* tNUMBER */
132 tTHE = 333, /* tTHE */
133 tTIME = 334, /* tTIME */
134 tXTRAS = 335, /* tXTRAS */
135 tCASTLIBS = 336, /* tCASTLIBS */
136 tSOUND = 337, /* tSOUND */
137 tSPRITE = 338, /* tSPRITE */
138 tINTERSECTS = 339, /* tINTERSECTS */
139 tWITHIN = 340, /* tWITHIN */
140 tTELL = 341, /* tTELL */
141 tPROPERTY = 342, /* tPROPERTY */
142 tON = 343, /* tON */
143 tMETHOD = 344, /* tMETHOD */
144 tENDIF = 345, /* tENDIF */
145 tENDREPEAT = 346, /* tENDREPEAT */
146 tENDTELL = 347, /* tENDTELL */
147 tASSERTERROR = 348 /* tASSERTERROR */
148 };
149 typedef enum yytokentype yytoken_kind_t;
150#endif
151
152/* Value type. */
153#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
155{
156#line 132 "engines/director/lingo/lingo-gr.y"
157
159 int i;
160 double f;
161 Director::ChunkType chunktype;
162 struct {
163 Common::String *eventName;
164 Common::String *stmt;
165 } w;
166
167 Director::IDList *idlist;
168 Director::Node *node;
169 Director::NodeList *nodelist;
170
171#line 172 "engines/director/lingo/lingo-gr.h"
172
173};
174typedef union YYSTYPE YYSTYPE;
175# define YYSTYPE_IS_TRIVIAL 1
176# define YYSTYPE_IS_DECLARED 1
177#endif
178
179
180extern YYSTYPE yylval;
181
182
183int yyparse (void);
184
185
186#endif /* !YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_H_INCLUDED */
Definition: array.h:52
Definition: str.h:59
Definition: lingo-ast.h:220
Definition: lingo-gr.h:155