aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-gr.h
diff options
context:
space:
mode:
authorScott Percival2019-12-04 00:50:28 +0800
committerScott Percival2019-12-04 00:50:28 +0800
commit2d3da1aa31f126dbfa225a958c2b2f17a7f9bf0a (patch)
treed410fa1e2ae7a3431278ab857c8dabf53b442b8a /engines/director/lingo/lingo-gr.h
parent324cffbde63902408836f8b6b7833162404edaae (diff)
downloadscummvm-rg350-2d3da1aa31f126dbfa225a958c2b2f17a7f9bf0a.tar.gz
scummvm-rg350-2d3da1aa31f126dbfa225a958c2b2f17a7f9bf0a.tar.bz2
scummvm-rg350-2d3da1aa31f126dbfa225a958c2b2f17a7f9bf0a.zip
DIRECTOR: LINGO: Implement c_argcpush
Diffstat (limited to 'engines/director/lingo/lingo-gr.h')
-rw-r--r--engines/director/lingo/lingo-gr.h332
1 files changed, 129 insertions, 203 deletions
diff --git a/engines/director/lingo/lingo-gr.h b/engines/director/lingo/lingo-gr.h
index 2d1093f1e5..d440580515 100644
--- a/engines/director/lingo/lingo-gr.h
+++ b/engines/director/lingo/lingo-gr.h
@@ -1,14 +1,14 @@
-/* A Bison parser, made by GNU Bison 2.3. */
+/* A Bison parser, made by GNU Bison 3.4. */
-/* Skeleton interface for Bison's Yacc-like parsers in C
+/* Bison interface for Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
+ Inc.
- This program is free software; you can redistribute it and/or modify
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,9 +16,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -33,199 +31,123 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
-/* Tokens. */
+/* Undocumented macros, especially those whose name start with YY_,
+ are private implementation details. Do not rely on them. */
+
+#ifndef YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED
+# define YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED
+/* Debug traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 1
+#endif
+#if YYDEBUG
+extern int yydebug;
+#endif
+
+/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- UNARY = 258,
- CASTREF = 259,
- VOID = 260,
- VAR = 261,
- POINT = 262,
- RECT = 263,
- ARRAY = 264,
- OBJECT = 265,
- REFERENCE = 266,
- INT = 267,
- THEENTITY = 268,
- THEENTITYWITHID = 269,
- FLOAT = 270,
- BLTIN = 271,
- BLTINNOARGS = 272,
- BLTINNOARGSORONE = 273,
- BLTINONEARG = 274,
- BLTINARGLIST = 275,
- TWOWORDBUILTIN = 276,
- FBLTIN = 277,
- FBLTINNOARGS = 278,
- FBLTINONEARG = 279,
- FBLTINARGLIST = 280,
- RBLTIN = 281,
- RBLTINONEARG = 282,
- ID = 283,
- STRING = 284,
- HANDLER = 285,
- SYMBOL = 286,
- ENDCLAUSE = 287,
- tPLAYACCEL = 288,
- tDOWN = 289,
- tELSE = 290,
- tNLELSIF = 291,
- tEXIT = 292,
- tFRAME = 293,
- tGLOBAL = 294,
- tGO = 295,
- tIF = 296,
- tINTO = 297,
- tLOOP = 298,
- tMACRO = 299,
- tMOVIE = 300,
- tNEXT = 301,
- tOF = 302,
- tPREVIOUS = 303,
- tPUT = 304,
- tREPEAT = 305,
- tSET = 306,
- tTHEN = 307,
- tTHENNL = 308,
- tTO = 309,
- tWHEN = 310,
- tWITH = 311,
- tWHILE = 312,
- tNLELSE = 313,
- tFACTORY = 314,
- tMETHOD = 315,
- tOPEN = 316,
- tPLAY = 317,
- tDONE = 318,
- tINSTANCE = 319,
- tGE = 320,
- tLE = 321,
- tGT = 322,
- tLT = 323,
- tEQ = 324,
- tNEQ = 325,
- tAND = 326,
- tOR = 327,
- tNOT = 328,
- tMOD = 329,
- tAFTER = 330,
- tBEFORE = 331,
- tCONCAT = 332,
- tCONTAINS = 333,
- tSTARTS = 334,
- tCHAR = 335,
- tITEM = 336,
- tLINE = 337,
- tWORD = 338,
- tSPRITE = 339,
- tINTERSECTS = 340,
- tWITHIN = 341,
- tTELL = 342,
- tPROPERTY = 343,
- tON = 344,
- tME = 345
- };
+ enum yytokentype
+ {
+ UNARY = 258,
+ CASTREF = 259,
+ VOID = 260,
+ VAR = 261,
+ POINT = 262,
+ RECT = 263,
+ ARRAY = 264,
+ OBJECT = 265,
+ REFERENCE = 266,
+ INT = 267,
+ ARGC = 268,
+ ARGCNORET = 269,
+ THEENTITY = 270,
+ THEENTITYWITHID = 271,
+ FLOAT = 272,
+ BLTIN = 273,
+ BLTINNOARGS = 274,
+ BLTINNOARGSORONE = 275,
+ BLTINONEARG = 276,
+ BLTINARGLIST = 277,
+ TWOWORDBUILTIN = 278,
+ FBLTIN = 279,
+ FBLTINNOARGS = 280,
+ FBLTINONEARG = 281,
+ FBLTINARGLIST = 282,
+ RBLTIN = 283,
+ RBLTINONEARG = 284,
+ ID = 285,
+ STRING = 286,
+ HANDLER = 287,
+ SYMBOL = 288,
+ ENDCLAUSE = 289,
+ tPLAYACCEL = 290,
+ tDOWN = 291,
+ tELSE = 292,
+ tNLELSIF = 293,
+ tEXIT = 294,
+ tFRAME = 295,
+ tGLOBAL = 296,
+ tGO = 297,
+ tIF = 298,
+ tINTO = 299,
+ tLOOP = 300,
+ tMACRO = 301,
+ tMOVIE = 302,
+ tNEXT = 303,
+ tOF = 304,
+ tPREVIOUS = 305,
+ tPUT = 306,
+ tREPEAT = 307,
+ tSET = 308,
+ tTHEN = 309,
+ tTHENNL = 310,
+ tTO = 311,
+ tWHEN = 312,
+ tWITH = 313,
+ tWHILE = 314,
+ tNLELSE = 315,
+ tFACTORY = 316,
+ tMETHOD = 317,
+ tOPEN = 318,
+ tPLAY = 319,
+ tDONE = 320,
+ tINSTANCE = 321,
+ tGE = 322,
+ tLE = 323,
+ tGT = 324,
+ tLT = 325,
+ tEQ = 326,
+ tNEQ = 327,
+ tAND = 328,
+ tOR = 329,
+ tNOT = 330,
+ tMOD = 331,
+ tAFTER = 332,
+ tBEFORE = 333,
+ tCONCAT = 334,
+ tCONTAINS = 335,
+ tSTARTS = 336,
+ tCHAR = 337,
+ tITEM = 338,
+ tLINE = 339,
+ tWORD = 340,
+ tSPRITE = 341,
+ tINTERSECTS = 342,
+ tWITHIN = 343,
+ tTELL = 344,
+ tPROPERTY = 345,
+ tON = 346,
+ tME = 347
+ };
#endif
-/* Tokens. */
-#define UNARY 258
-#define CASTREF 259
-#define VOID 260
-#define VAR 261
-#define POINT 262
-#define RECT 263
-#define ARRAY 264
-#define OBJECT 265
-#define REFERENCE 266
-#define INT 267
-#define THEENTITY 268
-#define THEENTITYWITHID 269
-#define FLOAT 270
-#define BLTIN 271
-#define BLTINNOARGS 272
-#define BLTINNOARGSORONE 273
-#define BLTINONEARG 274
-#define BLTINARGLIST 275
-#define TWOWORDBUILTIN 276
-#define FBLTIN 277
-#define FBLTINNOARGS 278
-#define FBLTINONEARG 279
-#define FBLTINARGLIST 280
-#define RBLTIN 281
-#define RBLTINONEARG 282
-#define ID 283
-#define STRING 284
-#define HANDLER 285
-#define SYMBOL 286
-#define ENDCLAUSE 287
-#define tPLAYACCEL 288
-#define tDOWN 289
-#define tELSE 290
-#define tNLELSIF 291
-#define tEXIT 292
-#define tFRAME 293
-#define tGLOBAL 294
-#define tGO 295
-#define tIF 296
-#define tINTO 297
-#define tLOOP 298
-#define tMACRO 299
-#define tMOVIE 300
-#define tNEXT 301
-#define tOF 302
-#define tPREVIOUS 303
-#define tPUT 304
-#define tREPEAT 305
-#define tSET 306
-#define tTHEN 307
-#define tTHENNL 308
-#define tTO 309
-#define tWHEN 310
-#define tWITH 311
-#define tWHILE 312
-#define tNLELSE 313
-#define tFACTORY 314
-#define tMETHOD 315
-#define tOPEN 316
-#define tPLAY 317
-#define tDONE 318
-#define tINSTANCE 319
-#define tGE 320
-#define tLE 321
-#define tGT 322
-#define tLT 323
-#define tEQ 324
-#define tNEQ 325
-#define tAND 326
-#define tOR 327
-#define tNOT 328
-#define tMOD 329
-#define tAFTER 330
-#define tBEFORE 331
-#define tCONCAT 332
-#define tCONTAINS 333
-#define tSTARTS 334
-#define tCHAR 335
-#define tITEM 336
-#define tLINE 337
-#define tWORD 338
-#define tSPRITE 339
-#define tINTERSECTS 340
-#define tWITHIN 341
-#define tTELL 342
-#define tPROPERTY 343
-#define tON 344
-#define tME 345
-
-
-
+/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 79 "engines/director/lingo/lingo-gr.y"
+union YYSTYPE
{
+#line 79 "engines/director/lingo/lingo-gr.y"
+
Common::String *s;
int i;
double f;
@@ -233,14 +155,18 @@ typedef union YYSTYPE
int code;
int narg; /* number of arguments */
Common::Array<double> *arr;
-}
-/* Line 1529 of yacc.c. */
-#line 239 "engines/director/lingo/lingo-gr.hpp"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
+
+#line 160 "engines/director/lingo/lingo-gr.hpp"
+
+};
+typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
+# define YYSTYPE_IS_DECLARED 1
#endif
+
extern YYSTYPE yylval;
+int yyparse (void);
+
+#endif /* !YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED */