Zen
A cross-platform functional programming language

GrammarLexer Class Reference

A Grammar Lexer represents a single lexer in a grammer. More...

#include <Ast.hpp>

Inheritance diagram for GrammarLexer:
Node

List of all members.

Public Member Functions

 GrammarLexer (const z::string &name)
 Default constructor.
const z::stringgetName () const
 Returns the name of the lexer.
void setList (const LexerStatementList &value)
 Set list of lexer statements.
const LexerStatementListgetList () const
 Returns the list of lexer statements.

Private Attributes

const z::string _name
 Name of the lexer.
const LexerStatementList_list

Detailed Description

A Grammar Lexer represents a single lexer in a grammer.


Constructor & Destructor Documentation

GrammarLexer ( const z::string name) [inline]

Default constructor.

Parameters:
nameName of the variable on the LHS of the grammar statement

Member Function Documentation

const LexerStatementList& getList ( ) const [inline]

Returns the list of lexer statements.

Returns:
Reference to list of lexer statements
const z::string& getName ( ) const [inline]

Returns the name of the lexer.

Returns:
Reference to name of the lexer
void setList ( const LexerStatementList value) [inline]

Set list of lexer statements.

Parameters:
valueReference to list of lexer statements

Member Data Documentation

const LexerStatementList* _list [private]
Returns:
Pointer to list of lexer statements

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