mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
159 lines
6.8 KiB
C++
159 lines
6.8 KiB
C++
/* A Bison parser, made by GNU Bison 3.8.2. */
|
|
|
|
/* Bison interface for Yacc-like parsers in C
|
|
|
|
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 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 3 of the License, 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, see <https://www.gnu.org/licenses/>. */
|
|
|
|
/* 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. */
|
|
|
|
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
|
|
especially those whose name start with YY_ or yy_. They are
|
|
private implementation details that can be changed or removed. */
|
|
|
|
#ifndef YY_YY_E_SRC_OPENMOHAA_CODE_PARSER_GENERATED_YYPARSER_HPP_INCLUDED
|
|
# define YY_YY_E_SRC_OPENMOHAA_CODE_PARSER_GENERATED_YYPARSER_HPP_INCLUDED
|
|
/* Debug traces. */
|
|
#ifndef YYDEBUG
|
|
# define YYDEBUG 0
|
|
#endif
|
|
#if YYDEBUG
|
|
extern int yydebug;
|
|
#endif
|
|
|
|
/* Token kinds. */
|
|
#ifndef YYTOKENTYPE
|
|
# define YYTOKENTYPE
|
|
enum yytokentype
|
|
{
|
|
YYEMPTY = -2,
|
|
TOKEN_EOF = 0, /* TOKEN_EOF */
|
|
YYerror = 256, /* error */
|
|
YYUNDEF = 257, /* "invalid token" */
|
|
TOKEN_EOL = 259, /* TOKEN_EOL */
|
|
TOKEN_COMMA = 260, /* TOKEN_COMMA */
|
|
TOKEN_IF = 261, /* TOKEN_IF */
|
|
TOKEN_ELSE = 262, /* TOKEN_ELSE */
|
|
TOKEN_WHILE = 263, /* TOKEN_WHILE */
|
|
TOKEN_FOR = 264, /* TOKEN_FOR */
|
|
TOKEN_DO = 265, /* TOKEN_DO */
|
|
TOKEN_IDENTIFIER = 266, /* TOKEN_IDENTIFIER */
|
|
TOKEN_LEFT_BRACES = 267, /* TOKEN_LEFT_BRACES */
|
|
TOKEN_RIGHT_BRACES = 268, /* TOKEN_RIGHT_BRACES */
|
|
TOKEN_LEFT_BRACKET = 269, /* TOKEN_LEFT_BRACKET */
|
|
TOKEN_RIGHT_BRACKET = 270, /* TOKEN_RIGHT_BRACKET */
|
|
TOKEN_LEFT_SQUARE_BRACKET = 271, /* TOKEN_LEFT_SQUARE_BRACKET */
|
|
TOKEN_RIGHT_SQUARE_BRACKET = 272, /* TOKEN_RIGHT_SQUARE_BRACKET */
|
|
TOKEN_ASSIGNMENT = 273, /* TOKEN_ASSIGNMENT */
|
|
TOKEN_PLUS_EQUALS = 274, /* TOKEN_PLUS_EQUALS */
|
|
TOKEN_MINUS_EQUALS = 275, /* TOKEN_MINUS_EQUALS */
|
|
TOKEN_MULTIPLY_EQUALS = 276, /* TOKEN_MULTIPLY_EQUALS */
|
|
TOKEN_DIVIDE_EQUALS = 277, /* TOKEN_DIVIDE_EQUALS */
|
|
TOKEN_MODULUS_EQUALS = 278, /* TOKEN_MODULUS_EQUALS */
|
|
TOKEN_AND_EQUALS = 279, /* TOKEN_AND_EQUALS */
|
|
TOKEN_EXCL_OR_EQUALS = 280, /* TOKEN_EXCL_OR_EQUALS */
|
|
TOKEN_OR_EQUALS = 281, /* TOKEN_OR_EQUALS */
|
|
TOKEN_SHIFT_LEFT_EQUALS = 282, /* TOKEN_SHIFT_LEFT_EQUALS */
|
|
TOKEN_SHIFT_RIGHT_EQUALS = 283, /* TOKEN_SHIFT_RIGHT_EQUALS */
|
|
TOKEN_TERNARY = 284, /* TOKEN_TERNARY */
|
|
TOKEN_COLON = 285, /* TOKEN_COLON */
|
|
TOKEN_LOGICAL_OR = 286, /* TOKEN_LOGICAL_OR */
|
|
TOKEN_LOGICAL_AND = 287, /* TOKEN_LOGICAL_AND */
|
|
TOKEN_BITWISE_OR = 288, /* TOKEN_BITWISE_OR */
|
|
TOKEN_BITWISE_EXCL_OR = 289, /* TOKEN_BITWISE_EXCL_OR */
|
|
TOKEN_BITWISE_AND = 290, /* TOKEN_BITWISE_AND */
|
|
TOKEN_EQUALITY = 291, /* TOKEN_EQUALITY */
|
|
TOKEN_INEQUALITY = 292, /* TOKEN_INEQUALITY */
|
|
TOKEN_LESS_THAN = 293, /* TOKEN_LESS_THAN */
|
|
TOKEN_LESS_THAN_OR_EQUAL = 294, /* TOKEN_LESS_THAN_OR_EQUAL */
|
|
TOKEN_GREATER_THAN = 295, /* TOKEN_GREATER_THAN */
|
|
TOKEN_GREATER_THAN_OR_EQUAL = 296, /* TOKEN_GREATER_THAN_OR_EQUAL */
|
|
TOKEN_SHIFT_LEFT = 297, /* TOKEN_SHIFT_LEFT */
|
|
TOKEN_SHIFT_RIGHT = 298, /* TOKEN_SHIFT_RIGHT */
|
|
TOKEN_PLUS = 299, /* TOKEN_PLUS */
|
|
TOKEN_MINUS = 300, /* TOKEN_MINUS */
|
|
TOKEN_MULTIPLY = 301, /* TOKEN_MULTIPLY */
|
|
TOKEN_DIVIDE = 302, /* TOKEN_DIVIDE */
|
|
TOKEN_MODULUS = 303, /* TOKEN_MODULUS */
|
|
TOKEN_NEG = 304, /* TOKEN_NEG */
|
|
TOKEN_NOT = 305, /* TOKEN_NOT */
|
|
TOKEN_COMPLEMENT = 306, /* TOKEN_COMPLEMENT */
|
|
TOKEN_STRING = 307, /* TOKEN_STRING */
|
|
TOKEN_INTEGER = 308, /* TOKEN_INTEGER */
|
|
TOKEN_FLOAT = 309, /* TOKEN_FLOAT */
|
|
TOKEN_LISTENER = 310, /* TOKEN_LISTENER */
|
|
TOKEN_NIL = 311, /* TOKEN_NIL */
|
|
TOKEN_NULL = 312, /* TOKEN_NULL */
|
|
TOKEN_DOUBLE_COLON = 313, /* TOKEN_DOUBLE_COLON */
|
|
TOKEN_SEMICOLON = 314, /* TOKEN_SEMICOLON */
|
|
TOKEN_DOLLAR = 315, /* TOKEN_DOLLAR */
|
|
TOKEN_NUMBER = 316, /* TOKEN_NUMBER */
|
|
TOKEN_INCREMENT = 317, /* TOKEN_INCREMENT */
|
|
TOKEN_DECREMENT = 318, /* TOKEN_DECREMENT */
|
|
TOKEN_PERIOD = 319, /* TOKEN_PERIOD */
|
|
TOKEN_CATCH = 320, /* TOKEN_CATCH */
|
|
TOKEN_TRY = 321, /* TOKEN_TRY */
|
|
TOKEN_SWITCH = 322, /* TOKEN_SWITCH */
|
|
TOKEN_CASE = 323, /* TOKEN_CASE */
|
|
TOKEN_BREAK = 324, /* TOKEN_BREAK */
|
|
TOKEN_CONTINUE = 325, /* TOKEN_CONTINUE */
|
|
TOKEN_SIZE = 326, /* TOKEN_SIZE */
|
|
TOKEN_END = 327, /* TOKEN_END */
|
|
TOKEN_RETURN = 328, /* TOKEN_RETURN */
|
|
TOKEN_MAKEARRAY = 329, /* TOKEN_MAKEARRAY */
|
|
TOKEN_ENDARRAY = 330 /* TOKEN_ENDARRAY */
|
|
};
|
|
typedef enum yytokentype yytoken_kind_t;
|
|
#endif
|
|
|
|
/* Value type. */
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
union YYSTYPE
|
|
{
|
|
#line 55 "E:/Src/openmohaa/code/parser/bison_source.txt"
|
|
|
|
stype_t s;
|
|
|
|
#line 142 "E:/Src/openmohaa/code/parser/generated/yyParser.hpp"
|
|
|
|
};
|
|
typedef union YYSTYPE YYSTYPE;
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
#endif
|
|
|
|
/* Location type. */
|
|
typedef parse_pos_t YYLTYPE;
|
|
|
|
|
|
extern YYSTYPE yylval;
|
|
extern YYLTYPE yylloc;
|
|
|
|
int yyparse (void);
|
|
|
|
|
|
#endif /* !YY_YY_E_SRC_OPENMOHAA_CODE_PARSER_GENERATED_YYPARSER_HPP_INCLUDED */
|