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
53
extern
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
LTE = 261,
/* LTE */
69
GTE = 262,
/* GTE */
70
NEQ = 263,
/* NEQ */
71
EQ = 264,
/* EQ */
72
FALSETOK = 265,
/* FALSETOK */
73
TRUETOK = 266,
/* TRUETOK */
74
NULLTOK = 267,
/* NULLTOK */
75
IFTOK = 268,
/* IFTOK */
76
ELSETOK = 269,
/* ELSETOK */
77
RECT = 270,
/* RECT */
78
GOTOTOK = 271,
/* GOTOTOK */
79
DEBUGTOK = 272,
/* DEBUGTOK */
80
EMITCODEONTOK = 273,
/* EMITCODEONTOK */
81
EMITCODEOFFTOK = 274,
/* EMITCODEOFFTOK */
82
RESETIDTOK = 275,
/* RESETIDTOK */
83
DEFINETOK = 276,
/* DEFINETOK */
84
SETTINGTOK = 277,
/* SETTINGTOK */
85
RANDOMTOK = 278
/* RANDOMTOK */
86
};
87
typedef
enum
PRIVATE_tokentype PRIVATE_token_kind_t;
88
#endif
89
90
/* Value type. */
91
#if ! defined PRIVATE_STYPE && ! defined PRIVATE_STYPE_IS_DECLARED
92
union
PRIVATE_STYPE
93
{
94
#line 79 "engines/private/grammar.y"
95
96
Private::Symbol
*sym;
/* symbol table pointer */
97
int (**inst)();
/* machine instruction */
98
char
*s;
/* string value */
99
int
*i;
/* integer value */
100
int
narg;
/* auxiliary value to count function arguments */
101
102
#line 103 "engines/private/tokens.h"
103
104
};
105
typedef
union
PRIVATE_STYPE
PRIVATE_STYPE;
106
# define PRIVATE_STYPE_IS_TRIVIAL 1
107
# define PRIVATE_STYPE_IS_DECLARED 1
108
#endif
109
110
111
extern
PRIVATE_STYPE PRIVATE_lval;
112
113
114
int
PRIVATE_parse (
void
);
115
116
117
#endif
/* !YY_PRIVATE_ENGINES_PRIVATE_TOKENS_H_INCLUDED */
PRIVATE_STYPE
Definition:
tokens.h:92
Private::Symbol
Definition:
symbol.h:35
engines
private
tokens.h
Generated on Sat Aug 31 2024 09:15:56 for ScummVM API documentation by
1.8.13