1 /* A Bison parser, made by GNU Bison 2.5. */ 2 3 /* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. 6 7 This program is free software: you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation, either version 3 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19 20 /* As a special exception, you may create a larger work that contains 21 part or all of the Bison parser skeleton and distribute that work 22 under terms of your choice, so long as that work isn't itself a 23 parser generator using the skeleton or a modified version thereof 24 as a parser skeleton. Alternatively, if you modify or redistribute 25 the parser skeleton itself, you may (at your option) remove this 26 special exception, which will cause the skeleton and the resulting 27 Bison output files to be licensed under the GNU General Public 28 License without this special exception. 29 30 This special exception was added by the Free Software Foundation in 31 version 2.2 of Bison. */ 32 33 34 /* Tokens. */ 35 #ifndef YYTOKENTYPE 36 # define YYTOKENTYPE 37 /* Put the tokens into the symbol table, so that GDB and other debuggers 38 know about them. */ 39 enum yytokentype { 40 T_IDENTIFIER = 258, 41 T_ARROW = 259, 42 T_TERMINAL = 260, 43 T_CODE = 261, 44 T_STRING = 262, 45 T_UNQUOTED_STRING = 263, 46 T_NUMBER = 264, 47 T_TOKEN_DECLARATION = 265, 48 T_TOKEN_STREAM_DECLARATION = 266, 49 T_NAMESPACE_DECLARATION = 267, 50 T_PARSERCLASS_DECLARATION = 268, 51 T_LEXERCLASS_DECLARATION = 269, 52 T_PUBLIC = 270, 53 T_PRIVATE = 271, 54 T_PROTECTED = 272, 55 T_DECLARATION = 273, 56 T_BITS = 274, 57 T_CONSTRUCTOR = 275, 58 T_DESTRUCTOR = 276, 59 T_TRY_RECOVER = 277, 60 T_TRY_ROLLBACK = 278, 61 T_CATCH = 279, 62 T_RULE_ARGUMENTS = 280, 63 T_MEMBER = 281, 64 T_TEMPORARY = 282, 65 T_ARGUMENT = 283, 66 T_EXPORT_MACRO = 284, 67 T_NODE = 285, 68 T_NODE_SEQUENCE = 286, 69 T_TOKEN = 287, 70 T_VARIABLE = 288, 71 T_EXPORT_MACRO_HEADER = 289, 72 T_AST_DECLARATION = 290, 73 T_PARSER_DECLARATION_HEADER = 291, 74 T_PARSER_BITS_HEADER = 292, 75 T_AST_HEADER = 293, 76 T_LEXER_DECLARATION_HEADER = 294, 77 T_LEXER_BITS_HEADER = 295, 78 T_PARSER_BASE = 296, 79 T_AST_BASE = 297, 80 T_LEXER_BASE = 298, 81 T_BIN = 299, 82 T_PRE = 300, 83 T_POST = 301, 84 T_TERN = 302, 85 T_LOPR = 303, 86 T_ROPR = 304, 87 T_LEFT_ASSOC = 305, 88 T_RIGHT_ASSOC = 306, 89 T_IS_LEFT_ASSOC = 307, 90 T_IS_RIGHT_ASSOC = 308, 91 T_PRIORITY = 309, 92 T_PAREN = 310, 93 T_INLINE = 311, 94 T_LEXER = 312, 95 T_INPUT_STREAM = 313, 96 T_INPUT_ENCODING = 314, 97 T_TABLE_LEXER = 315, 98 T_SEQUENCE_LEXER = 316, 99 T_NAMED_REGEXP = 317, 100 T_CONTINUE = 318, 101 T_RANGE = 319, 102 T_FAIL = 320, 103 T_LOOKAHEAD = 321, 104 T_BARRIER = 322, 105 T_ENTER_RULE_SET = 323, 106 T_LEAVE_RULE_SET = 324 107 }; 108 #endif 109 110 111 112 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 113 typedef union YYSTYPE 114 { 115 116 /* Line 2068 of yacc.c */ 117 #line 49 "/home/jonathan/gitKDE/kdevelop-pg-qt/kdev-pg/kdev-pg-parser.yy" 118 119 KDevPG::Model::Node *item; 120 char* str; 121 KDevPG::Model::VariableDeclarationItem::DeclarationType declarationType; 122 KDevPG::Model::VariableDeclarationItem::StorageType storageType; 123 KDevPG::Model::VariableDeclarationItem::VariableType variableType; 124 KDevPG::Model::Operator *operatorInformation; 125 KDevPG::GNFA *nfa; 126 127 128 129 /* Line 2068 of yacc.c */ 130 #line 131 "/home/jonathan/gitKDE/kdevelop-pg-qt/build/kdev-pg/kdev-pg-parser.hh" 131 } YYSTYPE; 132 # define YYSTYPE_IS_TRIVIAL 1 133 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 134 # define YYSTYPE_IS_DECLARED 1 135 #endif 136 137 extern YYSTYPE yylval; 138 139 140