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