mirror of
https://github.com/tars-node/tars2node.git
synced 2024-03-22 13:10:56 +08:00
95 lines
2.7 KiB
C++
95 lines
2.7 KiB
C++
/* A Bison parser, made by GNU Bison 3.0.4. */
|
|
|
|
/* Bison interface for Yacc-like parsers in C
|
|
|
|
Copyright (C) 1984, 1989-1990, 2000-2015 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 <http://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. */
|
|
|
|
#ifndef YY_YY_TARS_TAB_HPP_INCLUDED
|
|
# define YY_YY_TARS_TAB_HPP_INCLUDED
|
|
/* Debug traces. */
|
|
#ifndef YYDEBUG
|
|
# define YYDEBUG 1
|
|
#endif
|
|
#if YYDEBUG
|
|
extern int yydebug;
|
|
#endif
|
|
|
|
/* Token type. */
|
|
#ifndef YYTOKENTYPE
|
|
# define YYTOKENTYPE
|
|
enum yytokentype
|
|
{
|
|
TARS_VOID = 258,
|
|
TARS_STRUCT = 259,
|
|
TARS_BOOL = 260,
|
|
TARS_BYTE = 261,
|
|
TARS_SHORT = 262,
|
|
TARS_INT = 263,
|
|
TARS_DOUBLE = 264,
|
|
TARS_FLOAT = 265,
|
|
TARS_LONG = 266,
|
|
TARS_STRING = 267,
|
|
TARS_VECTOR = 268,
|
|
TARS_MAP = 269,
|
|
TARS_NAMESPACE = 270,
|
|
TARS_INTERFACE = 271,
|
|
TARS_IDENTIFIER = 272,
|
|
TARS_OUT = 273,
|
|
TARS_OP = 274,
|
|
TARS_KEY = 275,
|
|
TARS_ROUTE_KEY = 276,
|
|
TARS_REQUIRE = 277,
|
|
TARS_OPTIONAL = 278,
|
|
TARS_CONST_INTEGER = 279,
|
|
TARS_CONST_FLOAT = 280,
|
|
TARS_FALSE = 281,
|
|
TARS_TRUE = 282,
|
|
TARS_STRING_LITERAL = 283,
|
|
TARS_SCOPE_DELIMITER = 284,
|
|
TARS_CONST = 285,
|
|
TARS_ENUM = 286,
|
|
TARS_UNSIGNED = 287,
|
|
BAD_CHAR = 288
|
|
};
|
|
#endif
|
|
|
|
/* Value type. */
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
typedef int YYSTYPE;
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
#endif
|
|
|
|
|
|
extern YYSTYPE yylval;
|
|
|
|
int yyparse (void);
|
|
|
|
#endif /* !YY_YY_TARS_TAB_HPP_INCLUDED */
|