User Guide
nmodl::parser::UnitLexer Class Reference

Represent Lexer/Scanner class for Units parsing. More...

Detailed Description

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>

Inheritance diagram for nmodl::parser::UnitLexer:

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...
 

The documentation for this class was generated from the following file: