Zen
A cross-platform functional programming language

GrammarTokenList Class Reference

AST representing a list of lexer tokens. More...

#include <Ast.hpp>

Inheritance diagram for GrammarTokenList:
Node

List of all members.

Public Types

typedef z::list< const
GrammarToken * > 
List
 Default list of lexer tokens.

Public Member Functions

 GrammarTokenList ()
 Default constructor.
const ListgetList () const
 Returns a reference to the list of lexer tokens.
void addToken (const GrammarToken &token)
 Add a lexer token to the list.
bool isEmpty ()
 Checks whether the list is empty.
void clear ()
 Empties the list.

Private Attributes

List _list
 List of lexer tokens managed by this class.

Detailed Description

AST representing a list of lexer tokens.

Todo:
Rename to LexerTokenList

Member Function Documentation

void addToken ( const GrammarToken token) [inline]

Add a lexer token to the list.

Parameters:
tokenThe item to be added
const List& getList ( ) const [inline]

Returns a reference to the list of lexer tokens.

Returns:
List of lexer tokens
bool isEmpty ( ) [inline]

Checks whether the list is empty.

Returns:
True if list is empty

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