![]() |
Zen
A cross-platform functional programming language
|
AST representing a single lexer token. More...
#include <Ast.hpp>
Public Member Functions | |
| GrammarToken (const z::string &name, const z::string &txt, const bool &isRex, const bool &isNot) | |
| Default constructor. | |
| const z::string & | getName () const |
| Returns the name of the lexer token. | |
| const z::string & | getText () const |
| Returns the text of the lexer token. | |
| const bool & | isRex () const |
| Returns true if lexer token is a regular expression. | |
| const bool & | isNot () const |
| Returns true if lexer token should not be included in scanned string. | |
Private Attributes | |
| const z::string | _name |
| Name of lexer token. | |
| const z::string | _txt |
| Text of lexer token. | |
| const bool | _isRex |
| True if lexer token is a regular expression, else false. | |
| const bool | _isNot |
| True if lexer token should not be included in scanned string, else false. | |
AST representing a single lexer token.
| GrammarToken | ( | const z::string & | name, |
| const z::string & | txt, | ||
| const bool & | isRex, | ||
| const bool & | isNot | ||
| ) | [inline] |
Default constructor.
| name | Name of the lexer token |
| txt | Text of the lexer token |
| isRex | True if token is a regular expression |
| isNot | True if token should not be included in scanned token string |
| const z::string& getName | ( | ) | const [inline] |
Returns the name of the lexer token.
| const z::string& getText | ( | ) | const [inline] |
Returns the text of the lexer token.
| const bool& isNot | ( | ) | const [inline] |
Returns true if lexer token should not be included in scanned string.
| const bool& isRex | ( | ) | const [inline] |
Returns true if lexer token is a regular expression.