Zen
A cross-platform functional programming language
|
A Grammar Lexer represents a single lexer in a grammer. More...
#include <Ast.hpp>
Public Member Functions | |
GrammarLexer (const z::string &name) | |
Default constructor. | |
const z::string & | getName () const |
Returns the name of the lexer. | |
void | setList (const LexerStatementList &value) |
Set list of lexer statements. | |
const LexerStatementList & | getList () const |
Returns the list of lexer statements. | |
Private Attributes | |
const z::string | _name |
Name of the lexer. | |
const LexerStatementList * | _list |
A Grammar Lexer represents a single lexer in a grammer.
GrammarLexer | ( | const z::string & | name | ) | [inline] |
Default constructor.
name | Name of the variable on the LHS of the grammar statement |
const LexerStatementList& getList | ( | ) | const [inline] |
Returns the list of lexer statements.
const z::string& getName | ( | ) | const [inline] |
Returns the name of the lexer.
void setList | ( | const LexerStatementList & | value | ) | [inline] |
Set list of lexer statements.
value | Reference to list of lexer statements |
const LexerStatementList* _list [private] |