ScummVM API documentation
tokens.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_PRIVATE_ENGINES_PRIVATE_TOKENS_H_INCLUDED
39# define YY_PRIVATE_ENGINES_PRIVATE_TOKENS_H_INCLUDED
40/* Debug traces. */
41#ifndef PRIVATE_DEBUG
42# if defined YYDEBUG
43#if YYDEBUG
44# define PRIVATE_DEBUG 1
45# else
46# define PRIVATE_DEBUG 0
47# endif
48# else /* ! defined YYDEBUG */
49# define PRIVATE_DEBUG 0
50# endif /* ! defined YYDEBUG */
51#endif /* ! defined PRIVATE_DEBUG */
52#if PRIVATE_DEBUG
53extern int PRIVATE_debug;
54#endif
55
56/* Token kinds. */
57#ifndef PRIVATE_TOKENTYPE
58# define PRIVATE_TOKENTYPE
59 enum PRIVATE_tokentype
60 {
61 PRIVATE_EMPTY = -2,
62 PRIVATE_EOF = 0, /* "end of file" */
63 PRIVATE_error = 256, /* error */
64 PRIVATE_UNDEF = 257, /* "invalid token" */
65 NAME = 258, /* NAME */
66 STRING = 259, /* STRING */
67 NUM = 260, /* NUM */
68 NUM_PLUS = 261, /* NUM_PLUS */
69 LTE = 262, /* LTE */
70 GTE = 263, /* GTE */
71 NEQ = 264, /* NEQ */
72 EQ = 265, /* EQ */
73 FALSETOK = 266, /* FALSETOK */
74 TRUETOK = 267, /* TRUETOK */
75 NULLTOK = 268, /* NULLTOK */
76 IFTOK = 269, /* IFTOK */
77 ELSETOK = 270, /* ELSETOK */
78 RECT = 271, /* RECT */
79 GOTOTOK = 272, /* GOTOTOK */
80 DEBUGTOK = 273, /* DEBUGTOK */
81 EMITCODEONTOK = 274, /* EMITCODEONTOK */
82 EMITCODEOFFTOK = 275, /* EMITCODEOFFTOK */
83 RESETIDTOK = 276, /* RESETIDTOK */
84 DEFINETOK = 277, /* DEFINETOK */
85 SETTINGTOK = 278, /* SETTINGTOK */
86 RANDOMTOK = 279 /* RANDOMTOK */
87 };
88 typedef enum PRIVATE_tokentype PRIVATE_token_kind_t;
89#endif
90
91/* Value type. */
92#if ! defined PRIVATE_STYPE && ! defined PRIVATE_STYPE_IS_DECLARED
94{
95#line 81 "engines/private/grammar.y"
96
97 Private::Symbol *sym; /* symbol table pointer */
98 int (**inst)(); /* machine instruction */
99 char *s; /* string value */
100 int *i; /* integer value */
101 int narg; /* auxiliary value to count function arguments */
102
103#line 104 "engines/private/tokens.h"
104
105};
106typedef union PRIVATE_STYPE PRIVATE_STYPE;
107# define PRIVATE_STYPE_IS_TRIVIAL 1
108# define PRIVATE_STYPE_IS_DECLARED 1
109#endif
110
111
112extern PRIVATE_STYPE PRIVATE_lval;
113
114
115int PRIVATE_parse (void);
116
117
118#endif /* !YY_PRIVATE_ENGINES_PRIVATE_TOKENS_H_INCLUDED */
Definition: symbol.h:35
Definition: tokens.h:94