![]() |
Zen
A cross-platform functional programming language
|
AST representing a list of lexer tokens. More...
#include <Ast.hpp>
Public Types | |
|
typedef z::list< const GrammarToken * > | List |
| Default list of lexer tokens. | |
Public Member Functions | |
| GrammarTokenList () | |
| Default constructor. | |
| const List & | getList () 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. | |
AST representing a list of lexer tokens.
| void addToken | ( | const GrammarToken & | token | ) | [inline] |
Add a lexer token to the list.
| token | The item to be added |
| const List& getList | ( | ) | const [inline] |
Returns a reference to the list of lexer tokens.
| bool isEmpty | ( | ) | [inline] |
Checks whether the list is empty.