ug4
parser.hpp
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 2.3. */
2 
3 /* Skeleton interface for Bison's Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6  Free Software Foundation, 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 2, or (at your option)
11  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, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA. */
22 
23 /* As a special exception, you may create a larger work that contains
24  part or all of the Bison parser skeleton and distribute that work
25  under terms of your choice, so long as that work isn't itself a
26  parser generator using the skeleton or a modified version thereof
27  as a parser skeleton. Alternatively, if you modify or redistribute
28  the parser skeleton itself, you may (at your option) remove this
29  special exception, which will cause the skeleton and the resulting
30  Bison output files to be licensed under the GNU General Public
31  License without this special exception.
32 
33  This special exception was added by the Free Software Foundation in
34  version 2.2 of Bison. */
35 
36 /* Tokens. */
37 #ifndef YYTOKENTYPE
38 # define YYTOKENTYPE
39  /* Put the tokens into the symbol table, so that GDB and other debuggers
40  know about them. */
41  enum yytokentype {
42  YY_INTEGER = 258,
45  LUAPARSER_IF = 261,
66  LUAPARSER_DO = 282,
69  LUAPARSER_OR = 285,
71  LUAPARSER_NE = 287,
72  LUAPARSER_EQ = 288,
73  LUAPARSER_LE = 289,
74  LUAPARSER_GE = 290,
75  LUAPARSER_UMINUS = 291
76  };
77 #endif
78 /* Tokens. */
79 #define YY_INTEGER 258
80 #define LUAPARSER_VARIABLE 259
81 #define LUAPARSER_WHILE 260
82 #define LUAPARSER_IF 261
83 #define LUAPARSER_THEN 262
84 #define LUAPARSER_END 263
85 #define LUAPARSER_ELSE 264
86 #define LUAPARSER_ELSEIF 265
87 #define LUAPARSER_LOCAL 266
88 #define LUAPARSER_FUNCTION 267
89 #define LUAPARSER_RETURN 268
90 #define LUAPARSER_MATH_SIN 269
91 #define LUAPARSER_MATH_COS 270
92 #define LUAPARSER_MATH_EXP 271
93 #define LUAPARSER_MATH_ABS 272
94 #define LUAPARSER_MATH_LOG 273
95 #define LUAPARSER_MATH_LOG10 274
96 #define LUAPARSER_MATH_SQRT 275
97 #define LUAPARSER_MATH_FLOOR 276
98 #define LUAPARSER_MATH_CEIL 277
99 #define LUAPARSER_MATH_POW 278
100 #define LUAPARSER_MATH_MAX 279
101 #define LUAPARSER_MATH_MIN 280
102 #define LUAPARSER_MATH_PI 281
103 #define LUAPARSER_DO 282
104 #define LUAPARSER_FOR 283
105 #define LUAPARSER_BREAK 284
106 #define LUAPARSER_OR 285
107 #define LUAPARSER_AND 286
108 #define LUAPARSER_NE 287
109 #define LUAPARSER_EQ 288
110 #define LUAPARSER_LE 289
111 #define LUAPARSER_GE 290
112 #define LUAPARSER_UMINUS 291
113 
114 
115 
116 
117 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
118 typedef union YYSTYPE
119 #line 36 "parser.y"
120 {
121  double iValue; /* integer value */
122  int sIndex; /* symbol table index */
123  nodeType *nPtr; /* node pointer */
124  const char* pFunction;
125 }
126 /* Line 1529 of yacc.c. */
127 #line 128 "parser.hpp"
129 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
130 # define YYSTYPE_IS_DECLARED 1
131 # define YYSTYPE_IS_TRIVIAL 1
132 #endif
133 
134 extern YYSTYPE ug4_lua_YY_lval;
135 
yytokentype
Definition: parser.cpp:77
#define LUAPARSER_MATH_CEIL
Definition: parser.hpp:98
#define LUAPARSER_NE
Definition: parser.hpp:108
#define LUAPARSER_MATH_PI
Definition: parser.hpp:102
#define LUAPARSER_ELSE
Definition: parser.hpp:85
#define LUAPARSER_IF
Definition: parser.hpp:82
YYSTYPE ug4_lua_YY_lval
#define LUAPARSER_VARIABLE
Definition: parser.hpp:80
#define LUAPARSER_MATH_SQRT
Definition: parser.hpp:96
#define LUAPARSER_FOR
Definition: parser.hpp:104
#define LUAPARSER_ELSEIF
Definition: parser.hpp:86
#define LUAPARSER_MATH_MAX
Definition: parser.hpp:100
#define LUAPARSER_MATH_COS
Definition: parser.hpp:91
#define YY_INTEGER
Definition: parser.hpp:79
#define LUAPARSER_MATH_LOG
Definition: parser.hpp:94
#define LUAPARSER_MATH_FLOOR
Definition: parser.hpp:97
#define LUAPARSER_FUNCTION
Definition: parser.hpp:88
#define LUAPARSER_MATH_EXP
Definition: parser.hpp:92
#define LUAPARSER_BREAK
Definition: parser.hpp:105
#define LUAPARSER_RETURN
Definition: parser.hpp:89
#define LUAPARSER_MATH_SIN
Definition: parser.hpp:90
#define LUAPARSER_MATH_POW
Definition: parser.hpp:99
#define LUAPARSER_OR
Definition: parser.hpp:106
#define LUAPARSER_THEN
Definition: parser.hpp:83
#define LUAPARSER_END
Definition: parser.hpp:84
#define LUAPARSER_DO
Definition: parser.hpp:103
union YYSTYPE YYSTYPE
#define LUAPARSER_WHILE
Definition: parser.hpp:81
#define LUAPARSER_UMINUS
Definition: parser.hpp:112
#define LUAPARSER_EQ
Definition: parser.hpp:109
#define LUAPARSER_AND
Definition: parser.hpp:107
#define LUAPARSER_GE
Definition: parser.hpp:111
#define LUAPARSER_MATH_LOG10
Definition: parser.hpp:95
#define LUAPARSER_MATH_ABS
Definition: parser.hpp:93
#define LUAPARSER_MATH_MIN
Definition: parser.hpp:101
#define LUAPARSER_LE
Definition: parser.hpp:110
#define LUAPARSER_LOCAL
Definition: parser.hpp:87
Definition: parser_node.h:59
Definition: parser.hpp:120
double iValue
Definition: parser.hpp:121
int sIndex
Definition: parser.hpp:122
const char * pFunction
Definition: parser.hpp:124
nodeType * nPtr
Definition: parser.hpp:123