g2o
Loading...
Searching...
No Matches
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 SlamParser::Scanner::lex( \
8 SlamParser::Parser::semantic_type* yylval, \
9 SlamParser::Parser::location_type* yylloc)
10#endif
11
12#ifndef __FLEX_LEXER_H
13#define yyFlexLexer SlamFlexLexer
14#include "FlexLexer.h"
15#undef yyFlexLexer
16#endif
17
18#include "bison_parser.h"
19
20namespace SlamParser {
21
22class Scanner : public SlamFlexLexer {
23 public:
27 Scanner(std::istream* arg_yyin = 0, std::ostream* arg_yyout = 0);
28
30 virtual ~Scanner();
31
36 Parser::location_type* yylloc);
37
39 void set_debug(bool b);
40};
41
42} // namespace SlamParser
43
44#endif
virtual Parser::token_type lex(Parser::semantic_type *yylval, Parser::location_type *yylloc)
Two points in a source file.
Definition location.hh:142
Symbol semantic values.