1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
/* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
INT = 258,
STRING = 259,
ID = 260,
DIR = 261,
CONST = 262,
PROCEDURE = 263,
CALL = 264,
SILENT = 265,
LOCAL = 266,
NONMAGIC = 267,
SHL = 268,
SHR = 269,
EQ = 270,
NEQ = 271,
GTE = 272,
LTE = 273,
ANDAND = 274,
OROR = 275,
SCRIPT_DATA = 276,
TO = 277,
TOWARDS = 278,
TELEPORT_ANCHOR = 279,
SPELL = 280,
LET = 281,
IN = 282,
END = 283,
DARROW = 284,
STRING_TY = 285,
REQUIRE = 286,
CATALYSTS = 287,
COMPONENTS = 288,
MANA = 289,
CASTTIME = 290,
SKIP = 291,
ABORT = 292,
BREAK = 293,
EFFECT = 294,
ATEND = 295,
ATTRIGGER = 296,
PC_F = 297,
NPC_F = 298,
MOB_F = 299,
ENTITY_F = 300,
TARGET_F = 301,
IF = 302,
THEN = 303,
ELSE = 304,
FOREACH = 305,
FOR = 306,
DO = 307,
SLEEP = 308,
OR = 309
};
#endif
/* Tokens. */
#define INT 258
#define STRING 259
#define ID 260
#define DIR 261
#define CONST 262
#define PROCEDURE 263
#define CALL 264
#define SILENT 265
#define LOCAL 266
#define NONMAGIC 267
#define SHL 268
#define SHR 269
#define EQ 270
#define NEQ 271
#define GTE 272
#define LTE 273
#define ANDAND 274
#define OROR 275
#define SCRIPT_DATA 276
#define TO 277
#define TOWARDS 278
#define TELEPORT_ANCHOR 279
#define SPELL 280
#define LET 281
#define IN 282
#define END 283
#define DARROW 284
#define STRING_TY 285
#define REQUIRE 286
#define CATALYSTS 287
#define COMPONENTS 288
#define MANA 289
#define CASTTIME 290
#define SKIP 291
#define ABORT 292
#define BREAK 293
#define EFFECT 294
#define ATEND 295
#define ATTRIGGER 296
#define PC_F 297
#define NPC_F 298
#define MOB_F 299
#define ENTITY_F 300
#define TARGET_F 301
#define IF 302
#define THEN 303
#define ELSE 304
#define FOREACH 305
#define FOR 306
#define DO 307
#define SLEEP 308
#define OR 309
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 74 "magic-interpreter-parser.y"
{
int i;
char *s;
int op;
magic_conf_t *magic_conf;
val_t value;
expr_t *expr;
e_location_t location;
e_area_t area;
args_rec_t arg_list;
struct { int letdefs_nr; letdef_t *letdefs; } letdefs;
spell_t *spell;
struct { int id, ty; } spellarg_def;
letdef_t vardef;
spellguard_t *spellguard;
component_t *components;
struct {int id, count; } component;
effect_t *effect;
proc_t *proc;
}
/* Line 1489 of yacc.c. */
#line 178 "magic-interpreter-parser.h"
YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE magic_frontend_lval;
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
} YYLTYPE;
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
extern YYLTYPE magic_frontend_lloc;
|