![]() |
User Guide
|
#include "parser/diffeq/diffeq_parser.hpp"
#include "FlexLexer.h"
Go to the source code of this file.
Classes | |
class | nmodl::parser::DiffeqLexer |
Represent Lexer/Scanner class for differential equation parsing. More... | |
Namespaces | |
nmodl | |
encapsulates code generation backend implementations | |
nmodl::parser | |
encapsulate lexer and parsers implementations | |
Macros | |
#define | YY_DECL nmodl::parser::DiffeqParser::symbol_type nmodl::parser::DiffeqLexer::next_token() |
Flex expects the declaration of yylex to be defined in the macro YY_DECL and C++ parser class expects it to be declared. More... | |
#define | yyFlexLexer DiffEqFlexLexer |
For creating multiple (different) lexer classes, we can use -P flag (or prefix option) to rename each yyFlexLexer to some other name like xxFlexLexer . More... | |
Flex expects the declaration of yylex to be defined in the macro YY_DECL and C++ parser class expects it to be declared.
Definition at line 17 of file diffeq_lexer.hpp.
#define yyFlexLexer DiffEqFlexLexer |
For creating multiple (different) lexer classes, we can use -P
flag (or prefix option) to rename each yyFlexLexer
to some other name like xxFlexLexer
.
And then include <FlexLexer.h> in other sources once per lexer class, first renaming yyFlexLexer
as shown below.
Definition at line 27 of file diffeq_lexer.hpp.