1 /* A Bison parser, made by GNU Bison 3.0.2. */ 2 3 /* Bison interface for Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2013 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 #ifndef YY_YY_CAMP_TAB_H_INCLUDED 34 # define YY_YY_CAMP_TAB_H_INCLUDED 35 /* Debug traces. */ 36 #ifndef YYDEBUG 37 # define YYDEBUG 1 38 #endif 39 #if YYDEBUG 40 extern int yydebug; 41 #endif 42 43 /* Token type. */ 44 #ifndef YYTOKENTYPE 45 # define YYTOKENTYPE 46 enum yytokentype 47 { 48 ID = 258, 49 SELFOP = 259, 50 DOTS = 260, 51 COLONS = 261, 52 DASHES = 262, 53 INCR = 263, 54 LONGDASH = 264, 55 CONTROLS = 265, 56 TENSION = 266, 57 ATLEAST = 267, 58 CURL = 268, 59 COR = 269, 60 CAND = 270, 61 BAR = 271, 62 AMPERSAND = 272, 63 EQ = 273, 64 NEQ = 274, 65 LT = 275, 66 LE = 276, 67 GT = 277, 68 GE = 278, 69 CARETS = 279, 70 OPERATOR = 280, 71 LOOSE = 281, 72 ASSIGN = 282, 73 DIRTAG = 283, 74 JOIN_PREC = 284, 75 AND = 285, 76 ELLIPSIS = 286, 77 ACCESS = 287, 78 UNRAVEL = 288, 79 IMPORT = 289, 80 INCLUDE = 290, 81 FROM = 291, 82 QUOTE = 292, 83 STRUCT = 293, 84 TYPEDEF = 294, 85 NEW = 295, 86 IF = 296, 87 ELSE = 297, 88 WHILE = 298, 89 DO = 299, 90 FOR = 300, 91 BREAK = 301, 92 CONTINUE = 302, 93 RETURN_ = 303, 94 THIS = 304, 95 EXPLICIT = 305, 96 GARBAGE = 306, 97 LIT = 307, 98 STRING = 308, 99 PERM = 309, 100 MODIFIER = 310, 101 UNARY = 311, 102 EXP_IN_PARENS_RULE = 312 103 }; 104 #endif 105 106 /* Value type. */ 107 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 108 typedef union YYSTYPE YYSTYPE; 109 union YYSTYPE 110 { 111 #line 60 "camp.y" /* yacc.c:1909 */ 112 113 position pos; 114 bool boo; 115 struct { 116 position pos; 117 sym::symbol sym; 118 } ps; 119 absyntax::name *n; 120 absyntax::varinit *vi; 121 absyntax::arrayinit *ai; 122 absyntax::exp *e; 123 absyntax::stringExp *stre; 124 absyntax::specExp *se; 125 absyntax::joinExp *j; 126 absyntax::explist *elist; 127 absyntax::argument arg; 128 absyntax::arglist *alist; 129 absyntax::slice *slice; 130 absyntax::dimensions *dim; 131 absyntax::ty *t; 132 absyntax::decid *di; 133 absyntax::decidlist *dil; 134 absyntax::decidstart *dis; 135 absyntax::runnable *run; 136 struct { 137 position pos; 138 trans::permission val; 139 } perm; 140 struct { 141 position pos; 142 trans::modifier val; 143 } mod; 144 absyntax::modifierList *ml; 145 //absyntax::program *prog; 146 absyntax::vardec *vd; 147 //absyntax::vardecs *vds; 148 absyntax::dec *d; 149 absyntax::idpair *ip; 150 absyntax::idpairlist *ipl; 151 absyntax::stm *s; 152 absyntax::block *b; 153 absyntax::stmExpList *sel; 154 //absyntax::funheader *fh; 155 absyntax::formal *fl; 156 absyntax::formals *fls; 157 158 #line 159 "camp.tab.h" /* yacc.c:1909 */ 159 }; 160 # define YYSTYPE_IS_TRIVIAL 1 161 # define YYSTYPE_IS_DECLARED 1 162 #endif 163 164 165 extern YYSTYPE yylval; 166 167 int yyparse (void); 168 169 #endif /* !YY_YY_CAMP_TAB_H_INCLUDED */ 170