Inter4ql  5.2
Scanner.h
1 #ifndef __SCANNER_H__
2 #define __SCANNER_H__
3 
4 #if ! defined(yyFlexLexerOnce)
5 #include <FlexLexer.h>
6 #endif
7 
8 #undef YY_DECL
9 #define YY_DECL int Inter4ql::Scanner::yylex()
10 
11 #include "LineParser.tab.h"
12 
13 namespace Inter4ql {
14 
17  class Scanner : public yyFlexLexer {
18  public:
24  Scanner(std::istream* arg_yyin = 0, std::ostream* arg_yyout = 0) : yyFlexLexer(arg_yyin, arg_yyout) {
25  }
26 
27  ~Scanner() {
28  }
29 
36  int yylex(Inter4ql::LineParser::semantic_type * lval, Inter4ql::LineParser::location_type * lloc) {
37  /* we are pointing arguments to class private members
38  to be able to get their values afterwards */
39  yylval = lval;
40  yylloc = lloc;
41 
42  return yylex();
43  }
44 
45  private:
50  int yylex();
51  Inter4ql::LineParser::semantic_type * yylval;
52  Inter4ql::LineParser::location_type * yylloc;
53  };
54 }
55 
56 #endif
int yylex(Inter4ql::LineParser::semantic_type *lval, Inter4ql::LineParser::location_type *lloc)
Definition: Scanner.h:36
Scanner class, deriving from Flex generated class.
Definition: Scanner.h:17
Definition: Application.cc:37
Scanner(std::istream *arg_yyin=0, std::ostream *arg_yyout=0)
Default constructor.
Definition: Scanner.h:24