1 #ifndef YY_mootNgramsParser_h_included 2 #define YY_mootNgramsParser_h_included 20 #define YY_mootNgramsParser_LSP_NEEDED 21 #define YY_mootNgramsParser_LTYPE mootNgramsParserLType 22 #define YY_mootNgramsParser_DEBUG 1 23 #define YY_mootNgramsParser_ERROR_VERBOSE 24 #define YY_mootNgramsParser_LEX_BODY =0 25 #line 54 "mootNgramsParser.yy" 66 #define YY_mootNgramsParser_CLASS mootNgramsParser 67 #define YY_mootNgramsParser_MEMBERS \ 71 moot::mootNgrams *ngrams; \ 73 std::set<moot::mootTagString> *alltags; \ 75 moot::mootNgrams::Ngram prevngram; \ 77 moot::mootNgrams::Ngram curngram; \ 83 virtual ~mootNgramsParser(void) {};\ 85 virtual void yywarn(const char *msg) { \ 86 yycarp("mootNgramsParser: Warning: %s", msg);\ 89 virtual void yycarp(const char *fmt, ...); 90 #define YY_mootNgramsParser_CONSTRUCTOR_INIT : \ 94 #line 135 "mootNgramsParser.yy" 100 #define YY_mootNgramsParser_STYPE yy_mootNgramsParser_stype 101 #line 141 "mootNgramsParser.yy" 110 #ifndef YY_mootNgramsParser_COMPATIBILITY 112 #define YY_mootNgramsParser_COMPATIBILITY 1 114 #define YY_mootNgramsParser_COMPATIBILITY 0 118 #if YY_mootNgramsParser_COMPATIBILITY != 0 121 #ifndef YY_mootNgramsParser_LTYPE 122 #define YY_mootNgramsParser_LTYPE YYLTYPE 128 #ifndef YY_mootNgramsParser_STYPE 129 #define YY_mootNgramsParser_STYPE YYSTYPE 135 #ifndef YY_mootNgramsParser_DEBUG 136 #define YY_mootNgramsParser_DEBUG YYDEBUG 141 #ifdef YY_mootNgramsParser_STYPE 143 #define yystype YY_mootNgramsParser_STYPE 148 #ifndef YY_mootNgramsParser_PURE 160 #ifndef YY_mootNgramsParser_DEBUG 167 #ifndef YY_mootNgramsParser_LSP_NEEDED 175 #ifdef YY_mootNgramsParser_LSP_NEEDED 176 #ifndef YY_mootNgramsParser_LTYPE 189 #define YY_mootNgramsParser_LTYPE yyltype 193 #ifndef YY_mootNgramsParser_STYPE 194 #define YY_mootNgramsParser_STYPE int 197 #ifndef YY_mootNgramsParser_PARSE 198 #define YY_mootNgramsParser_PARSE yyparse 200 #ifndef YY_mootNgramsParser_LEX 201 #define YY_mootNgramsParser_LEX yylex 203 #ifndef YY_mootNgramsParser_LVAL 204 #define YY_mootNgramsParser_LVAL yylval 206 #ifndef YY_mootNgramsParser_LLOC 207 #define YY_mootNgramsParser_LLOC yylloc 209 #ifndef YY_mootNgramsParser_CHAR 210 #define YY_mootNgramsParser_CHAR yychar 212 #ifndef YY_mootNgramsParser_NERRS 213 #define YY_mootNgramsParser_NERRS yynerrs 215 #ifndef YY_mootNgramsParser_DEBUG_FLAG 216 #define YY_mootNgramsParser_DEBUG_FLAG yydebug 218 #ifndef YY_mootNgramsParser_ERROR 219 #define YY_mootNgramsParser_ERROR yyerror 222 #ifndef YY_mootNgramsParser_PARSE_PARAM 226 #define YY_mootNgramsParser_PARSE_PARAM 227 #ifndef YY_mootNgramsParser_PARSE_PARAM_DEF 228 #define YY_mootNgramsParser_PARSE_PARAM_DEF 233 #ifndef YY_mootNgramsParser_PARSE_PARAM 234 #define YY_mootNgramsParser_PARSE_PARAM void 241 #ifndef YY_mootNgramsParser_PURE 242 extern YY_mootNgramsParser_STYPE YY_mootNgramsParser_LVAL;
253 #line 134 "./bison.h" 257 #ifndef YY_mootNgramsParser_CLASS 258 #define YY_mootNgramsParser_CLASS mootNgramsParser 261 #ifndef YY_mootNgramsParser_INHERIT 262 #define YY_mootNgramsParser_INHERIT 264 #ifndef YY_mootNgramsParser_MEMBERS 265 #define YY_mootNgramsParser_MEMBERS 267 #ifndef YY_mootNgramsParser_LEX_BODY 268 #define YY_mootNgramsParser_LEX_BODY 270 #ifndef YY_mootNgramsParser_ERROR_BODY 271 #define YY_mootNgramsParser_ERROR_BODY 273 #ifndef YY_mootNgramsParser_CONSTRUCTOR_PARAM 274 #define YY_mootNgramsParser_CONSTRUCTOR_PARAM 277 class YY_mootNgramsParser_CLASS YY_mootNgramsParser_INHERIT
282 static const int TAG;
283 static const int COUNT;
284 static const int TAB;
285 static const int NEWLINE;
288 #line 160 "./bison.h" 291 int YY_mootNgramsParser_PARSE(YY_mootNgramsParser_PARSE_PARAM);
292 virtual void YY_mootNgramsParser_ERROR(
const char *) YY_mootNgramsParser_ERROR_BODY;
293 #ifdef YY_mootNgramsParser_PURE 294 #ifdef YY_mootNgramsParser_LSP_NEEDED 295 virtual int YY_mootNgramsParser_LEX(YY_mootNgramsParser_STYPE *YY_mootNgramsParser_LVAL,YY_mootNgramsParser_LTYPE *YY_mootNgramsParser_LLOC) YY_mootNgramsParser_LEX_BODY;
297 virtual int YY_mootNgramsParser_LEX(YY_mootNgramsParser_STYPE *YY_mootNgramsParser_LVAL) YY_mootNgramsParser_LEX_BODY;
300 virtual int YY_mootNgramsParser_LEX() YY_mootNgramsParser_LEX_BODY;
301 YY_mootNgramsParser_STYPE YY_mootNgramsParser_LVAL;
302 #ifdef YY_mootNgramsParser_LSP_NEEDED 303 YY_mootNgramsParser_LTYPE YY_mootNgramsParser_LLOC;
305 int YY_mootNgramsParser_NERRS;
306 int YY_mootNgramsParser_CHAR;
308 #if YY_mootNgramsParser_DEBUG != 0 310 int YY_mootNgramsParser_DEBUG_FLAG;
313 YY_mootNgramsParser_CLASS(YY_mootNgramsParser_CONSTRUCTOR_PARAM);
315 YY_mootNgramsParser_MEMBERS
321 #if YY_mootNgramsParser_COMPATIBILITY != 0 324 #define YYSTYPE YY_mootNgramsParser_STYPE 328 #define YYLTYPE YY_mootNgramsParser_LTYPE 331 #ifdef YY_mootNgramsParser_DEBUG 332 #define YYDEBUG YY_mootNgramsParser_DEBUG CountT NgramCount
Definition: mootNgrams.h:50
Definition: mootNgramsParser.h:40
string mootTagString
Definition: mootToken.h:59
Definition: mootNgrams.h:80
Definition: mootNgramsParser.h:32
HMM training data: n-gram frequencies: raw.