Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

mootNgramsParser.h

Go to the documentation of this file.
00001 #ifndef YY_mootNgramsParser_h_included
00002 #define YY_mootNgramsParser_h_included
00003 
00004 #line 1 "/usr/local/share/flex++bison++/bison.h"
00005 /* before anything */
00006 #ifdef c_plusplus
00007 #ifndef __cplusplus
00008 #define __cplusplus
00009 #endif
00010 #endif
00011 #ifdef __cplusplus
00012 #ifndef YY_USE_CLASS
00013 #define YY_USE_CLASS
00014 #endif
00015 #else
00016 #endif
00017 #include <stdio.h>
00018 
00019 /* #line 14 "/usr/local/share/flex++bison++/bison.h" */
00020 #define YY_mootNgramsParser_LSP_NEEDED 
00021 #define YY_mootNgramsParser_LTYPE  mootNgramsParserLType
00022 #define YY_mootNgramsParser_DEBUG  1
00023 #define YY_mootNgramsParser_ERROR_VERBOSE 
00024 #define YY_mootNgramsParser_LEX_BODY  =0
00025 #line 55 "mootNgramsParser.yy"
00026 
00027 #include <stdio.h>
00028 #include <stdlib.h>
00029 #include <stdarg.h>
00030 #include <math.h>
00031 
00032 #include <string>
00033 #include <string.h>
00034 
00035 #include "mootTypes.h"
00036 #include "mootNgrams.h"
00037 
00038 // -- get rid of bumble's macros
00039 #undef YYACCEPT
00040 #undef YYABORT
00041 #undef YYERROR
00042 #undef YYRECOVERING
00043 
00044 /* ?
00045  *  Location-stack element type for bison++ parser.
00046  */
00047 typedef struct {
00048   int timestamp;
00049   int first_line;
00050   int first_column;
00051   int last_line;
00052   int last_column;
00053   char *text;
00054 } mootNgramsParserLType;
00055 
00060 #define YY_mootNgramsParser_CLASS  mootNgramsParser
00061 #define YY_mootNgramsParser_MEMBERS  \
00062   public: \
00063    /* -- public instance members go here */ \
00064  \
00065    moot::mootNgrams              *ngrams; \
00066  \
00067    std::set<moot::mootTagString> *alltags; \
00068  \
00069    moot::mootNgrams::Ngram  prevngram; \
00070  \
00071    moot::mootNgrams::Ngram  curngram; \
00072   private: \
00073    /* private instance members go here */ \
00074   public: \
00075    /* public methods */ \
00076 \
00077    virtual ~mootNgramsParser(void) {};\
00078    /* report warnings */\
00079    virtual void yywarn(const char *msg) { \
00080       yycarp("mootNgramsParser: Warning: %s", msg);\
00081    }; \
00082 \
00083    virtual void yycarp(char *fmt, ...);   
00084 #define YY_mootNgramsParser_CONSTRUCTOR_INIT  : \
00085    ngrams(NULL), \
00086    alltags(NULL)
00087 
00088 #line 130 "mootNgramsParser.yy"
00089 typedef union {
00090   moot::mootNgrams::Ngram         *ngram;            
00091   moot::mootTagString            *tagstr;            
00092   moot::mootNgrams::NgramCount     count;            
00093 } yy_mootNgramsParser_stype;
00094 #define YY_mootNgramsParser_STYPE yy_mootNgramsParser_stype
00095 #line 136 "mootNgramsParser.yy"
00096 
00102 #line 14 "/usr/local/share/flex++bison++/bison.h"
00103  /* %{ and %header{ and %union, during decl */
00104 #ifndef YY_mootNgramsParser_COMPATIBILITY
00105 #ifndef YY_USE_CLASS
00106 #define  YY_mootNgramsParser_COMPATIBILITY 1
00107 #else
00108 #define  YY_mootNgramsParser_COMPATIBILITY 0
00109 #endif
00110 #endif
00111 
00112 #if YY_mootNgramsParser_COMPATIBILITY != 0
00113 /* backward compatibility */
00114 #ifdef YYLTYPE
00115 #ifndef YY_mootNgramsParser_LTYPE
00116 #define YY_mootNgramsParser_LTYPE YYLTYPE
00117 /* WARNING obsolete !!! user defined YYLTYPE not reported into generated header */
00118 /* use %define LTYPE */
00119 #endif
00120 #endif
00121 #ifdef YYSTYPE
00122 #ifndef YY_mootNgramsParser_STYPE 
00123 #define YY_mootNgramsParser_STYPE YYSTYPE
00124 /* WARNING obsolete !!! user defined YYSTYPE not reported into generated header */
00125 /* use %define STYPE */
00126 #endif
00127 #endif
00128 #ifdef YYDEBUG
00129 #ifndef YY_mootNgramsParser_DEBUG
00130 #define  YY_mootNgramsParser_DEBUG YYDEBUG
00131 /* WARNING obsolete !!! user defined YYDEBUG not reported into generated header */
00132 /* use %define DEBUG */
00133 #endif
00134 #endif
00135 #ifdef YY_mootNgramsParser_STYPE
00136 #ifndef yystype
00137 #define yystype YY_mootNgramsParser_STYPE
00138 #endif
00139 #endif
00140 #endif
00141 
00142 #ifndef YY_mootNgramsParser_PURE
00143 
00144 /* #line 54 "/usr/local/share/flex++bison++/bison.h" */
00145 
00146 #line 54 "/usr/local/share/flex++bison++/bison.h"
00147 /* YY_mootNgramsParser_PURE */
00148 #endif
00149 
00150 /* #line 56 "/usr/local/share/flex++bison++/bison.h" */
00151 
00152 #line 56 "/usr/local/share/flex++bison++/bison.h"
00153 /* prefix */
00154 #ifndef YY_mootNgramsParser_DEBUG
00155 
00156 /* #line 58 "/usr/local/share/flex++bison++/bison.h" */
00157 
00158 #line 58 "/usr/local/share/flex++bison++/bison.h"
00159 /* YY_mootNgramsParser_DEBUG */
00160 #endif
00161 #ifndef YY_mootNgramsParser_LSP_NEEDED
00162 
00163 /* #line 61 "/usr/local/share/flex++bison++/bison.h" */
00164 
00165 #line 61 "/usr/local/share/flex++bison++/bison.h"
00166  /* YY_mootNgramsParser_LSP_NEEDED*/
00167 #endif
00168 /* DEFAULT LTYPE*/
00169 #ifdef YY_mootNgramsParser_LSP_NEEDED
00170 #ifndef YY_mootNgramsParser_LTYPE
00171 typedef
00172   struct yyltype
00173     {
00174       int timestamp;
00175       int first_line;
00176       int first_column;
00177       int last_line;
00178       int last_column;
00179       char *text;
00180    }
00181   yyltype;
00182 
00183 #define YY_mootNgramsParser_LTYPE yyltype
00184 #endif
00185 #endif
00186 /* DEFAULT STYPE*/
00187 #ifndef YY_mootNgramsParser_STYPE
00188 #define YY_mootNgramsParser_STYPE int
00189 #endif
00190 /* DEFAULT MISCELANEOUS */
00191 #ifndef YY_mootNgramsParser_PARSE
00192 #define YY_mootNgramsParser_PARSE yyparse
00193 #endif
00194 #ifndef YY_mootNgramsParser_LEX
00195 #define YY_mootNgramsParser_LEX yylex
00196 #endif
00197 #ifndef YY_mootNgramsParser_LVAL
00198 #define YY_mootNgramsParser_LVAL yylval
00199 #endif
00200 #ifndef YY_mootNgramsParser_LLOC
00201 #define YY_mootNgramsParser_LLOC yylloc
00202 #endif
00203 #ifndef YY_mootNgramsParser_CHAR
00204 #define YY_mootNgramsParser_CHAR yychar
00205 #endif
00206 #ifndef YY_mootNgramsParser_NERRS
00207 #define YY_mootNgramsParser_NERRS yynerrs
00208 #endif
00209 #ifndef YY_mootNgramsParser_DEBUG_FLAG
00210 #define YY_mootNgramsParser_DEBUG_FLAG yydebug
00211 #endif
00212 #ifndef YY_mootNgramsParser_ERROR
00213 #define YY_mootNgramsParser_ERROR yyerror
00214 #endif
00215 
00216 #ifndef YY_mootNgramsParser_PARSE_PARAM
00217 #ifndef __STDC__
00218 #ifndef __cplusplus
00219 #ifndef YY_USE_CLASS
00220 #define YY_mootNgramsParser_PARSE_PARAM
00221 #ifndef YY_mootNgramsParser_PARSE_PARAM_DEF
00222 #define YY_mootNgramsParser_PARSE_PARAM_DEF
00223 #endif
00224 #endif
00225 #endif
00226 #endif
00227 #ifndef YY_mootNgramsParser_PARSE_PARAM
00228 #define YY_mootNgramsParser_PARSE_PARAM void
00229 #endif
00230 #endif
00231 
00232 /* TOKEN C */
00233 #ifndef YY_USE_CLASS
00234 
00235 #ifndef YY_mootNgramsParser_PURE
00236 extern YY_mootNgramsParser_STYPE YY_mootNgramsParser_LVAL;
00237 #endif
00238 
00239 
00240 /* #line 134 "/usr/local/share/flex++bison++/bison.h" */
00241 #define TAG     258
00242 #define COUNT   259
00243 #define TAB     260
00244 #define NEWLINE 261
00245 
00246 
00247 #line 134 "/usr/local/share/flex++bison++/bison.h"
00248  /* #defines token */
00249 /* after #define tokens, before const tokens S5*/
00250 #else
00251 #ifndef YY_mootNgramsParser_CLASS
00252 #define YY_mootNgramsParser_CLASS mootNgramsParser
00253 #endif
00254 
00255 #ifndef YY_mootNgramsParser_INHERIT
00256 #define YY_mootNgramsParser_INHERIT
00257 #endif
00258 #ifndef YY_mootNgramsParser_MEMBERS
00259 #define YY_mootNgramsParser_MEMBERS 
00260 #endif
00261 #ifndef YY_mootNgramsParser_LEX_BODY
00262 #define YY_mootNgramsParser_LEX_BODY  
00263 #endif
00264 #ifndef YY_mootNgramsParser_ERROR_BODY
00265 #define YY_mootNgramsParser_ERROR_BODY  
00266 #endif
00267 #ifndef YY_mootNgramsParser_CONSTRUCTOR_PARAM
00268 #define YY_mootNgramsParser_CONSTRUCTOR_PARAM
00269 #endif
00270 
00271 class YY_mootNgramsParser_CLASS YY_mootNgramsParser_INHERIT
00272 {
00273 public: /* static const int token ... */
00274 
00275 /* #line 160 "/usr/local/share/flex++bison++/bison.h" */
00276 static const int TAG;
00277 static const int COUNT;
00278 static const int TAB;
00279 static const int NEWLINE;
00280 
00281 
00282 #line 160 "/usr/local/share/flex++bison++/bison.h"
00283  /* decl const */
00284 public:
00285  int YY_mootNgramsParser_PARSE(YY_mootNgramsParser_PARSE_PARAM);
00286  virtual void YY_mootNgramsParser_ERROR(char *) YY_mootNgramsParser_ERROR_BODY;
00287 #ifdef YY_mootNgramsParser_PURE
00288 #ifdef YY_mootNgramsParser_LSP_NEEDED
00289  virtual int  YY_mootNgramsParser_LEX(YY_mootNgramsParser_STYPE *YY_mootNgramsParser_LVAL,YY_mootNgramsParser_LTYPE *YY_mootNgramsParser_LLOC) YY_mootNgramsParser_LEX_BODY;
00290 #else
00291  virtual int  YY_mootNgramsParser_LEX(YY_mootNgramsParser_STYPE *YY_mootNgramsParser_LVAL) YY_mootNgramsParser_LEX_BODY;
00292 #endif
00293 #else
00294  virtual int YY_mootNgramsParser_LEX() YY_mootNgramsParser_LEX_BODY;
00295  YY_mootNgramsParser_STYPE YY_mootNgramsParser_LVAL;
00296 #ifdef YY_mootNgramsParser_LSP_NEEDED
00297  YY_mootNgramsParser_LTYPE YY_mootNgramsParser_LLOC;
00298 #endif
00299  int YY_mootNgramsParser_NERRS;
00300  int YY_mootNgramsParser_CHAR;
00301 #endif
00302 #if YY_mootNgramsParser_DEBUG != 0
00303 public:
00304  int YY_mootNgramsParser_DEBUG_FLAG;    /*  nonzero means print parse trace     */
00305 #endif
00306 public:
00307  YY_mootNgramsParser_CLASS(YY_mootNgramsParser_CONSTRUCTOR_PARAM);
00308 public:
00309  YY_mootNgramsParser_MEMBERS 
00310 };
00311 /* other declare folow */
00312 #endif
00313 
00314 
00315 #if YY_mootNgramsParser_COMPATIBILITY != 0
00316 /* backward compatibility */
00317 #ifndef YYSTYPE
00318 #define YYSTYPE YY_mootNgramsParser_STYPE
00319 #endif
00320 
00321 #ifndef YYLTYPE
00322 #define YYLTYPE YY_mootNgramsParser_LTYPE
00323 #endif
00324 #ifndef YYDEBUG
00325 #ifdef YY_mootNgramsParser_DEBUG 
00326 #define YYDEBUG YY_mootNgramsParser_DEBUG
00327 #endif
00328 #endif
00329 
00330 #endif
00331 /* END */
00332 
00333 /* #line 209 "/usr/local/share/flex++bison++/bison.h" */
00334 #endif

Generated on Mon Sep 11 16:10:33 2006 for libmoot by doxygen1.2.18