|
ug4
|
#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include "parser_node.h"#include "lua_parser_class.h"Classes | |
| union | yyalloc |
Macros | |
| #define | LUAPARSER_AND 286 |
| #define | LUAPARSER_BREAK 284 |
| #define | LUAPARSER_DO 282 |
| #define | LUAPARSER_ELSE 264 |
| #define | LUAPARSER_ELSEIF 265 |
| #define | LUAPARSER_END 263 |
| #define | LUAPARSER_EQ 288 |
| #define | LUAPARSER_FOR 283 |
| #define | LUAPARSER_FUNCTION 267 |
| #define | LUAPARSER_GE 290 |
| #define | LUAPARSER_IF 261 |
| #define | LUAPARSER_LE 289 |
| #define | LUAPARSER_LOCAL 266 |
| #define | LUAPARSER_MATH_ABS 272 |
| #define | LUAPARSER_MATH_CEIL 277 |
| #define | LUAPARSER_MATH_COS 270 |
| #define | LUAPARSER_MATH_EXP 271 |
| #define | LUAPARSER_MATH_FLOOR 276 |
| #define | LUAPARSER_MATH_LOG 273 |
| #define | LUAPARSER_MATH_LOG10 274 |
| #define | LUAPARSER_MATH_MAX 279 |
| #define | LUAPARSER_MATH_MIN 280 |
| #define | LUAPARSER_MATH_PI 281 |
| #define | LUAPARSER_MATH_POW 278 |
| #define | LUAPARSER_MATH_SIN 269 |
| #define | LUAPARSER_MATH_SQRT 275 |
| #define | LUAPARSER_NE 287 |
| #define | LUAPARSER_OR 285 |
| #define | LUAPARSER_RETURN 268 |
| #define | LUAPARSER_THEN 262 |
| #define | LUAPARSER_UMINUS 291 |
| #define | LUAPARSER_VARIABLE 259 |
| #define | LUAPARSER_WHILE 260 |
| #define | THE_PREFIX ug4_lua_YY_ |
| #define | YY_(msgid) msgid |
| #define | YY_INTEGER 258 |
| #define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
| #define | YY_REDUCE_PRINT(Rule) |
| #define | yy_scan_string ug4_lua_YY__scan_string |
| #define | YY_STACK_PRINT(Bottom, Top) |
| #define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
| #define | YYABORT goto yyabortlab |
| #define | YYACCEPT goto yyacceptlab |
| #define | YYBACKUP(Token, Value) |
| #define | YYBISON 1 |
| #define | YYBISON_VERSION "2.3" |
| #define | yychar ug4_lua_YY_char |
| #define | yyclearin (yychar = YYEMPTY) |
| #define | YYCOPY(To, From, Count) |
| #define | yydebug ug4_lua_YY_debug |
| #define | YYDEBUG 0 |
| #define | YYDPRINTF(Args) |
| #define | YYEMPTY (-2) |
| #define | YYEOF 0 |
| #define | YYERRCODE 256 |
| #define | yyerrok (yyerrstatus = 0) |
| #define | yyerror ug4_lua_YY_error |
| #define | YYERROR goto yyerrorlab |
| #define | YYERROR_VERBOSE |
| #define | YYERROR_VERBOSE 1 |
| #define | YYFAIL goto yyerrlab |
| #define | YYFINAL 6 |
| #define | YYFREE free |
| #define | YYID(n) (n) |
| #define | YYINITDEPTH 200 |
| #define | YYLAST 520 |
| #define | yylex ug4_lua_YY_lex |
| #define | YYLEX yylex () |
| #define | YYLLOC_DEFAULT(Current, Rhs, N) |
| #define | YYLSP_NEEDED 0 |
| #define | yylval ug4_lua_YY_lval |
| #define | YYMALLOC malloc |
| #define | YYMAXDEPTH 10000 |
| #define | YYMAXUTOK 291 |
| #define | yynerrs ug4_lua_YY_nerrs |
| #define | YYNNTS 12 |
| #define | YYNRULES 55 |
| #define | YYNSTATES 148 |
| #define | YYNTOKENS 47 |
| #define | YYPACT_NINF -43 |
| #define | yyparse ug4_lua_YY_parse |
| #define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| #define | YYPURE 0 |
| #define | YYRECOVERING() (!!yyerrstatus) |
| #define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
| #define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define | YYSIZE_T unsigned int |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYSTACK_ALLOC YYMALLOC |
| #define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define | YYSTACK_BYTES(N) |
| #define | YYSTACK_FREE YYFREE |
| #define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| #define | YYSTACK_RELOCATE(Stack) |
| #define | YYTABLE_NINF -1 |
| #define | YYTERROR 1 |
| #define | YYTOKEN_TABLE 0 |
| #define | YYTOKENTYPE |
| #define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYUNDEFTOK 2 |
| #define | YYUSE(e) ((void) (e)) |
Typedefs | |
| typedef struct yy_buffer_state * | YY_BUFFER_STATE |
| typedef short int | yytype_int16 |
| typedef short int | yytype_int8 |
| typedef unsigned short int | yytype_uint16 |
| typedef unsigned char | yytype_uint8 |
Enumerations | |
| enum | yytokentype { YY_INTEGER = 258 , LUAPARSER_VARIABLE = 259 , LUAPARSER_WHILE = 260 , LUAPARSER_IF = 261 , LUAPARSER_THEN = 262 , LUAPARSER_END = 263 , LUAPARSER_ELSE = 264 , LUAPARSER_ELSEIF = 265 , LUAPARSER_LOCAL = 266 , LUAPARSER_FUNCTION = 267 , LUAPARSER_RETURN = 268 , LUAPARSER_MATH_SIN = 269 , LUAPARSER_MATH_COS = 270 , LUAPARSER_MATH_EXP = 271 , LUAPARSER_MATH_ABS = 272 , LUAPARSER_MATH_LOG = 273 , LUAPARSER_MATH_LOG10 = 274 , LUAPARSER_MATH_SQRT = 275 , LUAPARSER_MATH_FLOOR = 276 , LUAPARSER_MATH_CEIL = 277 , LUAPARSER_MATH_POW = 278 , LUAPARSER_MATH_MAX = 279 , LUAPARSER_MATH_MIN = 280 , LUAPARSER_MATH_PI = 281 , LUAPARSER_DO = 282 , LUAPARSER_FOR = 283 , LUAPARSER_BREAK = 284 , LUAPARSER_OR = 285 , LUAPARSER_AND = 286 , LUAPARSER_NE = 287 , LUAPARSER_EQ = 288 , LUAPARSER_LE = 289 , LUAPARSER_GE = 290 , LUAPARSER_UMINUS = 291 } |
Functions | |
| for (yylen=0;yystr[yylen];yylen++) continue | |
| if (!yymsg) yymsg | |
| switch (yytype) | |
| while ((*yyd++= *yys++) !='\0') continue | |
| void | yaccparse (const char *command, ug::LUAParserClass *p) |
| YY_BUFFER_STATE | yy_scan_string (const char *yy_str) |
| YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp) | |
| static void | yydestruct (yymsg, yytype, yyvaluep) const char *yymsg |
| void | yyerror (const char *s) |
| static char * | yystpcpy (yydest, yysrc) char *yydest |
| static YYSIZE_T | yystrlen (yystr) const char *yystr |
| static YYSIZE_T | yysyntax_error (char *yyresult, int yystate, int yychar) |
| static YYSIZE_T | yytnamerr (char *yyres, const char *yystr) |
Variables | |
| LUAParserClass * | globalP |
| int | yychar |
| static const yytype_int16 | yycheck [] |
| return | yyd |
| static const yytype_uint8 | yydefact [] |
| static const yytype_int16 | yydefgoto [] |
| return | yylen |
| YYSTYPE | yylval |
| int | yynerrs |
| static const yytype_int16 | yypact [] |
| static const yytype_int8 | yypgoto [] |
| static const yytype_uint8 | yyr1 [] |
| static const yytype_uint8 | yyr2 [] |
| const char * | yys = yysrc |
| const char * | yysrc |
| static const yytype_uint8 | yystos [] |
| static const yytype_uint8 | yytable [] |
| static const char *const | yytname [] |
| static const yytype_uint8 | yytranslate [] |
| int | yytype |
| YYSTYPE * | yyvaluep |
| #define LUAPARSER_AND 286 |
| #define LUAPARSER_BREAK 284 |
| #define LUAPARSER_DO 282 |
| #define LUAPARSER_ELSE 264 |
| #define LUAPARSER_ELSEIF 265 |
| #define LUAPARSER_END 263 |
| #define LUAPARSER_EQ 288 |
| #define LUAPARSER_FOR 283 |
| #define LUAPARSER_FUNCTION 267 |
| #define LUAPARSER_GE 290 |
| #define LUAPARSER_IF 261 |
| #define LUAPARSER_LE 289 |
| #define LUAPARSER_LOCAL 266 |
| #define LUAPARSER_MATH_ABS 272 |
| #define LUAPARSER_MATH_CEIL 277 |
| #define LUAPARSER_MATH_COS 270 |
| #define LUAPARSER_MATH_EXP 271 |
| #define LUAPARSER_MATH_FLOOR 276 |
| #define LUAPARSER_MATH_LOG 273 |
| #define LUAPARSER_MATH_LOG10 274 |
| #define LUAPARSER_MATH_MAX 279 |
| #define LUAPARSER_MATH_MIN 280 |
| #define LUAPARSER_MATH_PI 281 |
| #define LUAPARSER_MATH_POW 278 |
| #define LUAPARSER_MATH_SIN 269 |
| #define LUAPARSER_MATH_SQRT 275 |
| #define LUAPARSER_NE 287 |
| #define LUAPARSER_OR 285 |
| #define LUAPARSER_RETURN 268 |
| #define LUAPARSER_THEN 262 |
| #define LUAPARSER_UMINUS 291 |
| #define LUAPARSER_VARIABLE 259 |
| #define LUAPARSER_WHILE 260 |
| #define THE_PREFIX ug4_lua_YY_ |
| #define YY_ | ( | msgid | ) | msgid |
| #define YY_INTEGER 258 |
| #define YY_LOCATION_PRINT | ( | File, | |
| Loc | |||
| ) | ((void) 0) |
| #define YY_REDUCE_PRINT | ( | Rule | ) |
| #define yy_scan_string ug4_lua_YY__scan_string |
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Type, | |||
| Value, | |||
| Location | |||
| ) |
| #define YYABORT goto yyabortlab |
| #define YYACCEPT goto yyacceptlab |
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
| #define YYBISON 1 |
| #define YYBISON_VERSION "2.3" |
| #define yychar ug4_lua_YY_char |
| #define YYCOPY | ( | To, | |
| From, | |||
| Count | |||
| ) |
| #define yydebug ug4_lua_YY_debug |
| #define YYDEBUG 0 |
| #define YYDPRINTF | ( | Args | ) |
| #define YYEMPTY (-2) |
| #define YYEOF 0 |
| #define YYERRCODE 256 |
| #define yyerrok (yyerrstatus = 0) |
| #define yyerror ug4_lua_YY_error |
| #define YYERROR goto yyerrorlab |
| #define YYERROR_VERBOSE |
| #define YYERROR_VERBOSE 1 |
| #define YYFAIL goto yyerrlab |
| #define YYFINAL 6 |
| #define YYFREE free |
| #define YYID | ( | n | ) | (n) |
| #define YYINITDEPTH 200 |
| #define YYLAST 520 |
| #define yylex | ( | void | ) | ug4_lua_YY_lex |
| #define YYLEX yylex () |
| #define YYLLOC_DEFAULT | ( | Current, | |
| Rhs, | |||
| N | |||
| ) |
| #define YYLSP_NEEDED 0 |
| #define yylval ug4_lua_YY_lval |
| #define YYMALLOC malloc |
| #define YYMAXDEPTH 10000 |
| #define YYMAXUTOK 291 |
| #define yynerrs ug4_lua_YY_nerrs |
| #define YYNNTS 12 |
| #define YYNRULES 55 |
| #define YYNSTATES 148 |
| #define YYNTOKENS 47 |
| #define YYPACT_NINF -43 |
| int yyparse ug4_lua_YY_parse |
Referenced by yaccparse().
| #define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
| #define YYPURE 0 |
| #define YYRECOVERING | ( | ) | (!!yyerrstatus) |
| #define YYRHSLOC | ( | Rhs, | |
| K | |||
| ) | ((Rhs)[K]) |
| #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define YYSIZE_T unsigned int |
| #define YYSKELETON_NAME "yacc.c" |
| #define YYSTACK_ALLOC YYMALLOC |
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define YYSTACK_BYTES | ( | N | ) |
| #define YYSTACK_FREE YYFREE |
| #define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| #define YYSTACK_RELOCATE | ( | Stack | ) |
| #define YYTABLE_NINF -1 |
| #define YYTERROR 1 |
| #define YYTOKEN_TABLE 0 |
| #define YYTOKENTYPE |
| #define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define YYUNDEFTOK 2 |
| #define YYUSE | ( | e | ) | ((void) (e)) |
| typedef struct yy_buffer_state* YY_BUFFER_STATE |
| typedef short int yytype_int16 |
| typedef short int yytype_int8 |
| typedef unsigned short int yytype_uint16 |
| typedef unsigned char yytype_uint8 |
| enum yytokentype |
Referenced by NeumannBoundary().
| if | ( | ! | yymsg | ) |
| switch | ( | yytype | ) |
| while | ( | *++= *++yys ! | = '\0' | ) |
| void yaccparse | ( | const char * | command, |
| ug::LUAParserClass * | p | ||
| ) |
References globalP, p, yy_scan_string, and yyparse.
Referenced by ug::LUAParserClass::parse().
| YY_BUFFER_STATE yy_scan_string | ( | const char * | yy_str | ) |
| void yyerror | ( | const char * | s | ) |
References ug::LUAParserClass::err, globalP, and s.
|
static |
Referenced by yysyntax_error(), and yytnamerr().
|
static |
References yylen, and YYSIZE_T.
Referenced by yysyntax_error(), and yytnamerr().
|
static |
References YY_, yychar, yycheck, YYLAST, YYNTOKENS, yypact, YYPACT_NINF, YYSIZE_MAXIMUM, YYSIZE_T, yystpcpy(), yystrlen(), YYTERROR, yytname, yytnamerr(), YYTRANSLATE, and yytype.
|
static |
References YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
| LUAParserClass* globalP |
Referenced by yaccparse(), and yyerror().
| int yychar |
|
static |
Referenced by yysyntax_error().
| return yyd |
|
static |
|
static |
| return yylen |
Referenced by yystrlen().
| YYSTYPE yylval |
| int yynerrs |
|
static |
Referenced by yysyntax_error().
|
static |
|
static |
|
static |
| const char* yys = yysrc |
| const char* yysrc |
|
static |
|
static |
|
static |
Referenced by yysyntax_error().
|
static |
| int yytype |
Referenced by yysyntax_error().
| YYSTYPE* yyvaluep |