Advanced Strategic Command
scannerwrapper.cpp
Go to the documentation of this file.
1 
2 #include "scannerwrapper.h"
3 #include "parserbase.h"
4 #include "scanner.h"
5 #include "parser.h"
6 
7 
9  public:
11 };
12 
14 {
15  data = new ScannerPrivateData();
16  yylex_init( &data->scanner );
17  yyset_out( NULL, data->scanner );
18 }
19 
21 {
22  return ::yylex( data->scanner);
23 }
25 {
26  yylex_destroy( data->scanner );
27  delete data;
28 }
int yylex(yyscan_t yyscanner)
int yylex_init(yyscan_t *scanner)
Definition: scanner.cpp:1805
void * yyscan_t
Definition: scanner.cpp:125
void yyset_out(FILE *out_str, yyscan_t yyscanner)
Definition: scanner.cpp:1778
int yylex_destroy(yyscan_t yyscanner)
Definition: scanner.cpp:1896