123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- /* 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_CMD_CMDGRAM_H_INCLUDED
- # define YY_CMD_CMDGRAM_H_INCLUDED
- /* Debug traces. */
- #ifndef YYDEBUG
- # define YYDEBUG 0
- #endif
- #if YYDEBUG
- extern int CMDdebug;
- #endif
- /* Token kinds. */
- #ifndef YYTOKENTYPE
- # define YYTOKENTYPE
- enum yytokentype
- {
- YYEMPTY = -2,
- YYEOF = 0, /* "end of file" */
- YYerror = 256, /* error */
- YYUNDEF = 257, /* "invalid token" */
- rwDEFINE = 258, /* rwDEFINE */
- rwENDDEF = 259, /* rwENDDEF */
- rwDECLARE = 260, /* rwDECLARE */
- rwDECLARESINGLETON = 261, /* rwDECLARESINGLETON */
- rwBREAK = 262, /* rwBREAK */
- rwELSE = 263, /* rwELSE */
- rwCONTINUE = 264, /* rwCONTINUE */
- rwGLOBAL = 265, /* rwGLOBAL */
- rwIF = 266, /* rwIF */
- rwNIL = 267, /* rwNIL */
- rwRETURN = 268, /* rwRETURN */
- rwWHILE = 269, /* rwWHILE */
- rwDO = 270, /* rwDO */
- rwENDIF = 271, /* rwENDIF */
- rwENDWHILE = 272, /* rwENDWHILE */
- rwENDFOR = 273, /* rwENDFOR */
- rwDEFAULT = 274, /* rwDEFAULT */
- rwFOR = 275, /* rwFOR */
- rwFOREACH = 276, /* rwFOREACH */
- rwFOREACHSTR = 277, /* rwFOREACHSTR */
- rwIN = 278, /* rwIN */
- rwDATABLOCK = 279, /* rwDATABLOCK */
- rwSWITCH = 280, /* rwSWITCH */
- rwCASE = 281, /* rwCASE */
- rwSWITCHSTR = 282, /* rwSWITCHSTR */
- rwCASEOR = 283, /* rwCASEOR */
- rwPACKAGE = 284, /* rwPACKAGE */
- rwNAMESPACE = 285, /* rwNAMESPACE */
- rwCLASS = 286, /* rwCLASS */
- rwASSERT = 287, /* rwASSERT */
- ILLEGAL_TOKEN = 288, /* ILLEGAL_TOKEN */
- CHRCONST = 289, /* CHRCONST */
- INTCONST = 290, /* INTCONST */
- TTAG = 291, /* TTAG */
- VAR = 292, /* VAR */
- IDENT = 293, /* IDENT */
- TYPEIDENT = 294, /* TYPEIDENT */
- DOCBLOCK = 295, /* DOCBLOCK */
- STRATOM = 296, /* STRATOM */
- TAGATOM = 297, /* TAGATOM */
- FLTCONST = 298, /* FLTCONST */
- opINTNAME = 299, /* opINTNAME */
- opINTNAMER = 300, /* opINTNAMER */
- opMINUSMINUS = 301, /* opMINUSMINUS */
- opPLUSPLUS = 302, /* opPLUSPLUS */
- STMT_SEP = 303, /* STMT_SEP */
- opSHL = 304, /* opSHL */
- opSHR = 305, /* opSHR */
- opPLASN = 306, /* opPLASN */
- opMIASN = 307, /* opMIASN */
- opMLASN = 308, /* opMLASN */
- opDVASN = 309, /* opDVASN */
- opMODASN = 310, /* opMODASN */
- opANDASN = 311, /* opANDASN */
- opXORASN = 312, /* opXORASN */
- opORASN = 313, /* opORASN */
- opSLASN = 314, /* opSLASN */
- opSRASN = 315, /* opSRASN */
- opCAT = 316, /* opCAT */
- opEQ = 317, /* opEQ */
- opNE = 318, /* opNE */
- opGE = 319, /* opGE */
- opLE = 320, /* opLE */
- opAND = 321, /* opAND */
- opOR = 322, /* opOR */
- opSTREQ = 323, /* opSTREQ */
- opCOLONCOLON = 324, /* opCOLONCOLON */
- opMDASN = 325, /* opMDASN */
- opNDASN = 326, /* opNDASN */
- opNTASN = 327, /* opNTASN */
- opSTRNE = 328, /* opSTRNE */
- UNARY = 329 /* UNARY */
- };
- typedef enum yytokentype yytoken_kind_t;
- #endif
- /* Value type. */
- #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
- union YYSTYPE
- {
- #line 87 "CMDgram.y"
- Token< char > c;
- Token< int > i;
- Token< const char* > s;
- Token< char* > str;
- Token< double > f;
- StmtNode* stmt;
- ExprNode* expr;
- SlotAssignNode* slist;
- VarNode* var;
- SlotDecl slot;
- InternalSlotDecl intslot;
- ObjectBlockDecl odcl;
- ObjectDeclNode* od;
- AssignDecl asn;
- IfStmtNode* ifnode;
- #line 156 "CMDgram.h"
- };
- typedef union YYSTYPE YYSTYPE;
- # define YYSTYPE_IS_TRIVIAL 1
- # define YYSTYPE_IS_DECLARED 1
- #endif
- /* Location type. */
- #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
- typedef struct YYLTYPE YYLTYPE;
- struct YYLTYPE
- {
- int first_line;
- int first_column;
- int last_line;
- int last_column;
- };
- # define YYLTYPE_IS_DECLARED 1
- # define YYLTYPE_IS_TRIVIAL 1
- #endif
- extern YYSTYPE CMDlval;
- extern YYLTYPE CMDlloc;
- int CMDparse (void);
- #endif /* !YY_CMD_CMDGRAM_H_INCLUDED */
|