mootClassfreqsParser.h
Go to the documentation of this file.
1 #ifndef YY_mootClassfreqsParser_h_included
2 #define YY_mootClassfreqsParser_h_included
3 
4 #line 1 "./bison.h"
5 /* before anything */
6 #ifdef c_plusplus
7 #ifndef __cplusplus
8 #define __cplusplus
9 #endif
10 #endif
11 #ifdef __cplusplus
12 #ifndef YY_USE_CLASS
13 #define YY_USE_CLASS
14 #endif
15 #else
16 #endif
17 #include <stdio.h>
18 
19 /* #line 14 "./bison.h" */
20 #define YY_mootClassfreqsParser_LSP_NEEDED
21 #define YY_mootClassfreqsParser_LTYPE mootClassfreqsParserLType
22 #define YY_mootClassfreqsParser_DEBUG 1
23 #define YY_mootClassfreqsParser_ERROR_VERBOSE
24 #define YY_mootClassfreqsParser_LEX_BODY =0
25 #line 54 "mootClassfreqsParser.yy"
26 
27 /*============================================================================
28  * Doxygen docs
29  *============================================================================*/
41 #include <stdio.h>
42 #include <stdlib.h>
43 #include <stdarg.h>
44 #include <math.h>
45 #include <string.h>
46 
47 #include "mootClassfreqs.h"
48 
49 // -- get rid of bumble's macros
50 #undef YYACCEPT
51 #undef YYABORT
52 #undef YYERROR
53 #undef YYRECOVERING
54 
55 /* ?
56  * Location-stack element type for bison++ parser.
57  */
58 typedef struct {
59  int timestamp;
60  int first_line;
61  int first_column;
62  int last_line;
63  int last_column;
64  char *text;
66 
67 #define YY_mootClassfreqsParser_CLASS mootClassfreqsParser
68 #define YY_mootClassfreqsParser_MEMBERS \
69  public: \
70  /* -- public instance members go here */ \
71  \
72  moot::mootClassfreqs *cfreqs; \
73  protected: \
74  /* protected instance members go here */ \
75  \
76  moot::mootClassfreqs::LexClass lclass; \
77  public: \
78  /* public methods */ \
79 \
80  virtual ~mootClassfreqsParser(void) {};\
81  /* report warnings */\
82  virtual void yywarn(const char *msg) { \
83  yycarp("mootClassfreqsParser: Warning: %s", msg);\
84  }; \
85 \
86  virtual void yycarp(const char *fmt, ...);
87 #define YY_mootClassfreqsParser_CONSTRUCTOR_INIT : cfreqs(NULL)
88 
89 #line 133 "mootClassfreqsParser.yy"
90 typedef union {
92  moot::CountT count;
94 #define YY_mootClassfreqsParser_STYPE yy_mootClassfreqsParser_stype
95 #line 138 "mootClassfreqsParser.yy"
96 
102 #line 14 "./bison.h"
103  /* %{ and %header{ and %union, during decl */
104 #ifndef YY_mootClassfreqsParser_COMPATIBILITY
105 #ifndef YY_USE_CLASS
106 #define YY_mootClassfreqsParser_COMPATIBILITY 1
107 #else
108 #define YY_mootClassfreqsParser_COMPATIBILITY 0
109 #endif
110 #endif
111 
112 #if YY_mootClassfreqsParser_COMPATIBILITY != 0
113 /* backward compatibility */
114 #ifdef YYLTYPE
115 #ifndef YY_mootClassfreqsParser_LTYPE
116 #define YY_mootClassfreqsParser_LTYPE YYLTYPE
117 /* WARNING obsolete !!! user defined YYLTYPE not reported into generated header */
118 /* use %define LTYPE */
119 #endif
120 #endif
121 #ifdef YYSTYPE
122 #ifndef YY_mootClassfreqsParser_STYPE
123 #define YY_mootClassfreqsParser_STYPE YYSTYPE
124 /* WARNING obsolete !!! user defined YYSTYPE not reported into generated header */
125 /* use %define STYPE */
126 #endif
127 #endif
128 #ifdef YYDEBUG
129 #ifndef YY_mootClassfreqsParser_DEBUG
130 #define YY_mootClassfreqsParser_DEBUG YYDEBUG
131 /* WARNING obsolete !!! user defined YYDEBUG not reported into generated header */
132 /* use %define DEBUG */
133 #endif
134 #endif
135 #ifdef YY_mootClassfreqsParser_STYPE
136 #ifndef yystype
137 #define yystype YY_mootClassfreqsParser_STYPE
138 #endif
139 #endif
140 #endif
141 
142 #ifndef YY_mootClassfreqsParser_PURE
143 
144 /* #line 54 "./bison.h" */
145 
146 #line 54 "./bison.h"
147 /* YY_mootClassfreqsParser_PURE */
148 #endif
149 
150 /* #line 56 "./bison.h" */
151 
152 #line 56 "./bison.h"
153 /* prefix */
154 #ifndef YY_mootClassfreqsParser_DEBUG
155 
156 /* #line 58 "./bison.h" */
157 
158 #line 58 "./bison.h"
159 /* YY_mootClassfreqsParser_DEBUG */
160 #endif
161 #ifndef YY_mootClassfreqsParser_LSP_NEEDED
162 
163 /* #line 61 "./bison.h" */
164 
165 #line 61 "./bison.h"
166  /* YY_mootClassfreqsParser_LSP_NEEDED*/
167 #endif
168 /* DEFAULT LTYPE*/
169 #ifdef YY_mootClassfreqsParser_LSP_NEEDED
170 #ifndef YY_mootClassfreqsParser_LTYPE
171 typedef
172  struct yyltype
173  {
174  int timestamp;
175  int first_line;
176  int first_column;
177  int last_line;
178  int last_column;
179  char *text;
180  }
181  yyltype;
182 
183 #define YY_mootClassfreqsParser_LTYPE yyltype
184 #endif
185 #endif
186 /* DEFAULT STYPE*/
187 #ifndef YY_mootClassfreqsParser_STYPE
188 #define YY_mootClassfreqsParser_STYPE int
189 #endif
190 /* DEFAULT MISCELANEOUS */
191 #ifndef YY_mootClassfreqsParser_PARSE
192 #define YY_mootClassfreqsParser_PARSE yyparse
193 #endif
194 #ifndef YY_mootClassfreqsParser_LEX
195 #define YY_mootClassfreqsParser_LEX yylex
196 #endif
197 #ifndef YY_mootClassfreqsParser_LVAL
198 #define YY_mootClassfreqsParser_LVAL yylval
199 #endif
200 #ifndef YY_mootClassfreqsParser_LLOC
201 #define YY_mootClassfreqsParser_LLOC yylloc
202 #endif
203 #ifndef YY_mootClassfreqsParser_CHAR
204 #define YY_mootClassfreqsParser_CHAR yychar
205 #endif
206 #ifndef YY_mootClassfreqsParser_NERRS
207 #define YY_mootClassfreqsParser_NERRS yynerrs
208 #endif
209 #ifndef YY_mootClassfreqsParser_DEBUG_FLAG
210 #define YY_mootClassfreqsParser_DEBUG_FLAG yydebug
211 #endif
212 #ifndef YY_mootClassfreqsParser_ERROR
213 #define YY_mootClassfreqsParser_ERROR yyerror
214 #endif
215 
216 #ifndef YY_mootClassfreqsParser_PARSE_PARAM
217 #ifndef __STDC__
218 #ifndef __cplusplus
219 #ifndef YY_USE_CLASS
220 #define YY_mootClassfreqsParser_PARSE_PARAM
221 #ifndef YY_mootClassfreqsParser_PARSE_PARAM_DEF
222 #define YY_mootClassfreqsParser_PARSE_PARAM_DEF
223 #endif
224 #endif
225 #endif
226 #endif
227 #ifndef YY_mootClassfreqsParser_PARSE_PARAM
228 #define YY_mootClassfreqsParser_PARSE_PARAM void
229 #endif
230 #endif
231 
232 /* TOKEN C */
233 #ifndef YY_USE_CLASS
234 
235 #ifndef YY_mootClassfreqsParser_PURE
236 extern YY_mootClassfreqsParser_STYPE YY_mootClassfreqsParser_LVAL;
237 #endif
238 
239 
240 /* #line 134 "./bison.h" */
241 #define TAG 258
242 #define COUNT 259
243 
244 
245 #line 134 "./bison.h"
246  /* #defines token */
247 /* after #define tokens, before const tokens S5*/
248 #else
249 #ifndef YY_mootClassfreqsParser_CLASS
250 #define YY_mootClassfreqsParser_CLASS mootClassfreqsParser
251 #endif
252 
253 #ifndef YY_mootClassfreqsParser_INHERIT
254 #define YY_mootClassfreqsParser_INHERIT
255 #endif
256 #ifndef YY_mootClassfreqsParser_MEMBERS
257 #define YY_mootClassfreqsParser_MEMBERS
258 #endif
259 #ifndef YY_mootClassfreqsParser_LEX_BODY
260 #define YY_mootClassfreqsParser_LEX_BODY
261 #endif
262 #ifndef YY_mootClassfreqsParser_ERROR_BODY
263 #define YY_mootClassfreqsParser_ERROR_BODY
264 #endif
265 #ifndef YY_mootClassfreqsParser_CONSTRUCTOR_PARAM
266 #define YY_mootClassfreqsParser_CONSTRUCTOR_PARAM
267 #endif
268 
269 class YY_mootClassfreqsParser_CLASS YY_mootClassfreqsParser_INHERIT
270 {
271 public: /* static const int token ... */
272 
273 /* #line 160 "./bison.h" */
274 static const int TAG;
275 static const int COUNT;
276 
277 
278 #line 160 "./bison.h"
279  /* decl const */
280 public:
281  int YY_mootClassfreqsParser_PARSE(YY_mootClassfreqsParser_PARSE_PARAM);
282  virtual void YY_mootClassfreqsParser_ERROR(const char *) YY_mootClassfreqsParser_ERROR_BODY;
283 #ifdef YY_mootClassfreqsParser_PURE
284 #ifdef YY_mootClassfreqsParser_LSP_NEEDED
285  virtual int YY_mootClassfreqsParser_LEX(YY_mootClassfreqsParser_STYPE *YY_mootClassfreqsParser_LVAL,YY_mootClassfreqsParser_LTYPE *YY_mootClassfreqsParser_LLOC) YY_mootClassfreqsParser_LEX_BODY;
286 #else
287  virtual int YY_mootClassfreqsParser_LEX(YY_mootClassfreqsParser_STYPE *YY_mootClassfreqsParser_LVAL) YY_mootClassfreqsParser_LEX_BODY;
288 #endif
289 #else
290  virtual int YY_mootClassfreqsParser_LEX() YY_mootClassfreqsParser_LEX_BODY;
291  YY_mootClassfreqsParser_STYPE YY_mootClassfreqsParser_LVAL;
292 #ifdef YY_mootClassfreqsParser_LSP_NEEDED
293  YY_mootClassfreqsParser_LTYPE YY_mootClassfreqsParser_LLOC;
294 #endif
295  int YY_mootClassfreqsParser_NERRS;
296  int YY_mootClassfreqsParser_CHAR;
297 #endif
298 #if YY_mootClassfreqsParser_DEBUG != 0
299 public:
300  int YY_mootClassfreqsParser_DEBUG_FLAG; /* nonzero means print parse trace */
301 #endif
302 public:
303  YY_mootClassfreqsParser_CLASS(YY_mootClassfreqsParser_CONSTRUCTOR_PARAM);
304 public:
305  YY_mootClassfreqsParser_MEMBERS
306 };
307 /* other declare folow */
308 #endif
309 
310 
311 #if YY_mootClassfreqsParser_COMPATIBILITY != 0
312 /* backward compatibility */
313 #ifndef YYSTYPE
314 #define YYSTYPE YY_mootClassfreqsParser_STYPE
315 #endif
316 
317 #ifndef YYLTYPE
318 #define YYLTYPE YY_mootClassfreqsParser_LTYPE
319 #endif
320 #ifndef YYDEBUG
321 #ifdef YY_mootClassfreqsParser_DEBUG
322 #define YYDEBUG YY_mootClassfreqsParser_DEBUG
323 #endif
324 #endif
325 
326 #endif
327 /* END */
328 
329 /* #line 209 "./bison.h" */
330 #endif
HMM training data: lexical-class frequencies: raw.
Definition: mootClassfreqsParser.h:32
Definition: mootClassfreqsParser.h:40
string mootTagString
Definition: mootToken.h:59
ProbT CountT
Definition: mootTypes.h:67