Zen
A cross-platform functional programming language

GrammarBlock Class Reference

AST Node representing a grammar block. More...

#include <Ast.hpp>

Inheritance diagram for GrammarBlock:
BlockBase Node

List of all members.

Public Member Functions

 GrammarBlock (const VariableRefList &refList, const GrammarOptionList &optList, const GrammarStatementList &list, const GrammarLexerList &lexList)
 Default constructor.
const GrammarOptionListgetOptList () const
 Returns a reference to the list of grammar options.
const GrammarStatementListgetList () const
 Returns a reference to the list of grammar statements.
const GrammarLexerListgetLexList () 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.

Detailed Description

AST Node representing a grammar block.


Constructor & Destructor Documentation

GrammarBlock ( const VariableRefList refList,
const GrammarOptionList optList,
const GrammarStatementList list,
const GrammarLexerList lexList 
) [inline]

Default constructor.

Parameters:
refListThe list of external variables referenced by this block
optListThe list of options for this grammar
listThe list of EBNF grammar statements for this block
lexListThe list of lexers for this grammar

Member Function Documentation

const GrammarLexerList& getLexList ( ) const [inline]

Returns a reference to the list of lexers.

Returns:
Lexer list.
const GrammarStatementList& getList ( ) const [inline]

Returns a reference to the list of grammar statements.

Returns:
Statement list.
const GrammarOptionList& getOptList ( ) const [inline]

Returns a reference to the list of grammar options.

Returns:
Option list.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines