Zen
A cross-platform functional programming language
|
A grammar statement representing a lexer. More...
#include <Ast.hpp>
Public Member Functions | |
LexerStatement (const z::string &name, const Ast::FunctionDef &fdef, const Ast::FunctionBlock &fblock, GrammarLexer &lexer, const Ast::GrammarTokenList &list) | |
Default constructor. | |
const GrammarLexer & | getLexer () const |
Returns a reference to the lexer. | |
const Ast::GrammarTokenList & | getList () const |
Returns a reference to the grammar token list. | |
Private Member Functions | |
virtual void | visit (GrammarStatement::Visitor &visitor) const |
Visitor pattern implementation. | |
Private Attributes | |
const GrammarLexer & | _lexer |
Reference to lexer. | |
const Ast::GrammarTokenList & | _list |
Reference to grammar token list. |
A grammar statement representing a lexer.
LexerStatement | ( | const z::string & | name, |
const Ast::FunctionDef & | fdef, | ||
const Ast::FunctionBlock & | fblock, | ||
GrammarLexer & | lexer, | ||
const Ast::GrammarTokenList & | list | ||
) | [inline] |
Default constructor.
name | Name of the variable on the LHS of the grammar statement |
fdef | Definition of the function that represents this statement |
fblock | Function block of the action function for this statement |
lexer | The lexer associated with this lexer statement |
list | List of grammar tokens associated with this lexer statement |
const GrammarLexer& getLexer | ( | ) | const [inline] |
Returns a reference to the lexer.
const Ast::GrammarTokenList& getList | ( | ) | const [inline] |
Returns a reference to the grammar token list.
void visit | ( | GrammarStatement::Visitor & | visitor | ) | const [private, virtual] |