Zen
A cross-platform functional programming language

LexerStatement Class Reference

A grammar statement representing a lexer. More...

#include <Ast.hpp>

Inheritance diagram for LexerStatement:
GrammarStatement Node

List of all members.

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 GrammarLexergetLexer () const
 Returns a reference to the lexer.
const Ast::GrammarTokenListgetList () 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.

Detailed Description

A grammar statement representing a lexer.


Constructor & Destructor Documentation

LexerStatement ( const z::string name,
const Ast::FunctionDef fdef,
const Ast::FunctionBlock fblock,
GrammarLexer lexer,
const Ast::GrammarTokenList list 
) [inline]

Default constructor.

Parameters:
nameName of the variable on the LHS of the grammar statement
fdefDefinition of the function that represents this statement
fblockFunction block of the action function for this statement
lexerThe lexer associated with this lexer statement
listList of grammar tokens associated with this lexer statement

Member Function Documentation

const GrammarLexer& getLexer ( ) const [inline]

Returns a reference to the lexer.

Returns:
Reference to lexer
const Ast::GrammarTokenList& getList ( ) const [inline]

Returns a reference to the grammar token list.

Returns:
Reference to grammar token list
void visit ( GrammarStatement::Visitor visitor) const [private, virtual]

Visitor pattern implementation.

Parameters:
visitorThe visitor object.

Implements GrammarStatement.


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