Zen
A cross-platform functional programming language
|
AST Node representing a grammar block. More...
#include <Ast.hpp>
Public Member Functions | |
GrammarBlock (const VariableRefList &refList, const GrammarOptionList &optList, const GrammarStatementList &list, const GrammarLexerList &lexList) | |
Default constructor. | |
const GrammarOptionList & | getOptList () const |
Returns a reference to the list of grammar options. | |
const GrammarStatementList & | getList () const |
Returns a reference to the list of grammar statements. | |
const GrammarLexerList & | getLexList () const |
Returns a reference to the list of lexers. | |
Private Attributes | |
const Ast::GrammarOptionList & | _optList |
The Option list. | |
const Ast::GrammarStatementList & | _list |
The Statement list. | |
const Ast::GrammarLexerList & | _lexList |
The Lexer list. |
AST Node representing a grammar block.
GrammarBlock | ( | const VariableRefList & | refList, |
const GrammarOptionList & | optList, | ||
const GrammarStatementList & | list, | ||
const GrammarLexerList & | lexList | ||
) | [inline] |
Default constructor.
refList | The list of external variables referenced by this block |
optList | The list of options for this grammar |
list | The list of EBNF grammar statements for this block |
lexList | The list of lexers for this grammar |
const GrammarLexerList& getLexList | ( | ) | const [inline] |
Returns a reference to the list of lexers.
const GrammarStatementList& getList | ( | ) | const [inline] |
Returns a reference to the list of grammar statements.
const GrammarOptionList& getOptList | ( | ) | const [inline] |
Returns a reference to the list of grammar options.