g2o
scanner.h
Go to the documentation of this file.
1 #ifndef SCANNER_H
2 #define SCANNER_H
3 
4 #ifndef YY_DECL
5 
6 #define YY_DECL \
7  SlamParser::Parser::token_type \
8  SlamParser::Scanner::lex( \
9  SlamParser::Parser::semantic_type* yylval, \
10  SlamParser::Parser::location_type* yylloc \
11  )
12 #endif
13 
14 #ifndef __FLEX_LEXER_H
15 #define yyFlexLexer SlamFlexLexer
16 #include "FlexLexer.h"
17 #undef yyFlexLexer
18 #endif
19 
20 #include "bison_parser.h"
21 
22 namespace SlamParser {
23 
24  class Scanner : public SlamFlexLexer
25  {
26  public:
30  Scanner(std::istream* arg_yyin = 0,
31  std::ostream* arg_yyout = 0);
32 
34  virtual ~Scanner();
35 
39  virtual Parser::token_type lex(
40  Parser::semantic_type* yylval,
41  Parser::location_type* yylloc
42  );
43 
45  void set_debug(bool b);
46  };
47 
48 } // end namespace
49 
50 #endif
virtual Parser::token_type lex(Parser::semantic_type *yylval, Parser::location_type *yylloc)
Symbol semantic values.
Definition: bison_parser.h:119
Scanner(std::istream *arg_yyin=0, std::ostream *arg_yyout=0)
Abstract a location.
Definition: location.hh:56
void set_debug(bool b)