![]() |
User Guide
|
Represent Lexer/Scanner class for Units parsing. More...
Represent Lexer/Scanner class for Units parsing.
Lexer defined to add some extra function to the scanner class from flex. Flex itself creates yyFlexLexer class, which we renamed using macros to UnitFlexLexer. But we change the context of the generated yylex() function because the yylex() defined in UnitFlexLexer has no parameters.
Definition at line 49 of file unit_lexer.hpp.
#include <unit_lexer.hpp>
Public Member Functions | |
virtual UnitParser::symbol_type | next_token () |
Function for lexer to scan token (replacement for yylex() ) More... | |
Ctor & dtor | |
UnitLexer (UnitDriver &, std::istream *in=nullptr, std::ostream *out=nullptr) | |
UnitLexer constructor. More... | |
~UnitLexer () override=default | |
Public Attributes | |
location | loc |
location of the parsed token More... | |