1 /* A Bison parser, made by GNU Bison 3.0.4.  */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5    Copyright (C) 1984, 1989-1990, 2000-2015 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_ZZ_PARSER_HH_INCLUDED
34 # define YY_ZZ_PARSER_HH_INCLUDED
35 /* Debug traces.  */
36 #ifndef YYDEBUG
37 # define YYDEBUG 0
38 #endif
39 #if YYDEBUG
40 extern int zzdebug;
41 #endif
42 
43 /* Token type.  */
44 #ifndef YYTOKENTYPE
45 # define YYTOKENTYPE
46   enum yytokentype
47   {
48     INT = 258,
49     DOUBLE = 259,
50     NAME = 260,
51     STRING = 261,
52     SYSCMD = 262,
53     ENDCMD = 263,
54     MODEL = 264,
55     DATA = 265,
56     IN = 266,
57     TO = 267,
58     INITS = 268,
59     PARAMETERS = 269,
60     COMPILE = 270,
61     INITIALIZE = 271,
62     ADAPT = 272,
63     AUTOADAPT = 273,
64     FORCEADAPT = 274,
65     UPDATE = 275,
66     BY = 276,
67     MONITORS = 277,
68     MONITOR = 278,
69     TYPE = 279,
70     SET = 280,
71     CLEAR = 281,
72     THIN = 282,
73     CODA = 283,
74     STEM = 284,
75     EXIT = 285,
76     NCHAINS = 286,
77     CHAIN = 287,
78     LOAD = 288,
79     UNLOAD = 289,
80     SAMPLER = 290,
81     SAMPLERS = 291,
82     RNGTOK = 292,
83     FACTORY = 293,
84     FACTORIES = 294,
85     MODULES = 295,
86     SEED = 296,
87     LIST = 297,
88     STRUCTURE = 298,
89     DIM = 299,
90     NA = 300,
91     R_NULL = 301,
92     DIMNAMES = 302,
93     ITER = 303,
94     ARROW = 304,
95     ENDDATA = 305,
96     ASINTEGER = 306,
97     DOTDATA = 307,
98     DIRECTORY = 308,
99     CD = 309,
100     PWD = 310,
101     RUN = 311,
102     ENDSCRIPT = 312
103   };
104 #endif
105 /* Tokens.  */
106 #define INT 258
107 #define DOUBLE 259
108 #define NAME 260
109 #define STRING 261
110 #define SYSCMD 262
111 #define ENDCMD 263
112 #define MODEL 264
113 #define DATA 265
114 #define IN 266
115 #define TO 267
116 #define INITS 268
117 #define PARAMETERS 269
118 #define COMPILE 270
119 #define INITIALIZE 271
120 #define ADAPT 272
121 #define AUTOADAPT 273
122 #define FORCEADAPT 274
123 #define UPDATE 275
124 #define BY 276
125 #define MONITORS 277
126 #define MONITOR 278
127 #define TYPE 279
128 #define SET 280
129 #define CLEAR 281
130 #define THIN 282
131 #define CODA 283
132 #define STEM 284
133 #define EXIT 285
134 #define NCHAINS 286
135 #define CHAIN 287
136 #define LOAD 288
137 #define UNLOAD 289
138 #define SAMPLER 290
139 #define SAMPLERS 291
140 #define RNGTOK 292
141 #define FACTORY 293
142 #define FACTORIES 294
143 #define MODULES 295
144 #define SEED 296
145 #define LIST 297
146 #define STRUCTURE 298
147 #define DIM 299
148 #define NA 300
149 #define R_NULL 301
150 #define DIMNAMES 302
151 #define ITER 303
152 #define ARROW 304
153 #define ENDDATA 305
154 #define ASINTEGER 306
155 #define DOTDATA 307
156 #define DIRECTORY 308
157 #define CD 309
158 #define PWD 310
159 #define RUN 311
160 #define ENDSCRIPT 312
161 
162 /* Value type.  */
163 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
164 
165 union YYSTYPE
166 {
167 #line 99 "../../../../../jags-4_patched/src/terminal/parser.yy" /* yacc.c:1909  */
168 
169   int intval;
170   double val;
171   std::string *stringptr;
172   jags::ParseTree *ptree;
173   std::vector<jags::ParseTree*> *pvec;
174   std::vector<double> *vec;
175   std::vector<long> *ivec;
176 
177 #line 178 "parser.hh" /* yacc.c:1909  */
178 };
179 
180 typedef union YYSTYPE YYSTYPE;
181 # define YYSTYPE_IS_TRIVIAL 1
182 # define YYSTYPE_IS_DECLARED 1
183 #endif
184 
185 
186 extern YYSTYPE zzlval;
187 
188 int zzparse (void);
189 
190 #endif /* !YY_ZZ_PARSER_HH_INCLUDED  */
191