#include <Token.h>
List of all members.
Public Types |
enum | Types {
Undefined,
Keyword,
AlphaIdent,
SymbolicIdent,
Comment,
IntLiteral,
FloatLiteral,
StringLiteral,
CharLiteral,
Dot,
Comma,
Colon,
Semicolon,
LParen,
RParen,
LBracket,
RBracket,
LBrace,
RBrace,
EOT,
LastTokenType
} |
enum | Alias {
CompoundSeparator = Dot,
ItemSeparator = Comma,
StatementTerminator = Semicolon,
TypeIndicator = Colon,
Lambda = LastTokenType + 1
} |
Detailed Description
Definition at line 31 of file Token.h.
Member Enumeration Documentation
- Enumerator:
CompoundSeparator |
|
ItemSeparator |
|
StatementTerminator |
|
TypeIndicator |
|
Lambda |
|
Definition at line 43 of file Token.h.
- Enumerator:
Undefined |
|
Keyword |
|
AlphaIdent |
|
SymbolicIdent |
|
Comment |
|
IntLiteral |
|
FloatLiteral |
|
StringLiteral |
|
CharLiteral |
|
Dot |
|
Comma |
|
Colon |
|
Semicolon |
|
LParen |
|
RParen |
|
LBracket |
|
RBracket |
|
LBrace |
|
RBrace |
|
EOT |
|
LastTokenType |
|
Definition at line 37 of file Token.h.
Constructor & Destructor Documentation
Token::Token |
( |
const Token & |
rhs | ) |
|
Token::Token |
( |
const char * |
s, |
|
|
int |
t, |
|
|
int |
k = 0 , |
|
|
int |
l = 0 , |
|
|
int |
c = 0 |
|
) |
| |
Token::Token |
( |
const Text & |
s, |
|
|
int |
t, |
|
|
int |
k = 0 , |
|
|
int |
l = 0 , |
|
|
int |
c = 0 |
|
) |
| |
Member Function Documentation
void Token::addKey |
( |
const Text & |
k, |
|
|
int |
v |
|
) |
| |
|
static |
static char Token::altBeg |
( |
unsigned int |
i | ) |
|
|
inlinestatic |
void Token::altComments |
( |
const Text & |
begin, |
|
|
const Text & |
end |
|
) |
| |
|
static |
static char Token::altEnd |
( |
unsigned int |
i | ) |
|
|
inlinestatic |
int Token::column |
( |
| ) |
const |
|
inline |
static char Token::comBeg |
( |
unsigned int |
i | ) |
|
|
inlinestatic |
static char Token::comEnd |
( |
unsigned int |
i | ) |
|
|
inlinestatic |
void Token::comments |
( |
const Text & |
begin, |
|
|
const Text & |
end |
|
) |
| |
|
static |
Text Token::describe |
( |
const Text & |
tok | ) |
|
|
static |
bool Token::findKey |
( |
const Text & |
k, |
|
|
int & |
v |
|
) |
| |
|
static |
static void Token::hideComments |
( |
bool |
hide = true | ) |
|
|
inlinestatic |
int Token::line |
( |
| ) |
const |
|
inline |
bool Token::match |
( |
const Token & |
ref | ) |
const |
Text Token::symbol |
( |
| ) |
const |
int Token::type |
( |
| ) |
const |
|
inline |
Text Token::typestr |
( |
| ) |
const |
Friends And Related Function Documentation
Member Data Documentation
char Token::altbeg = "/*" |
|
staticprotected |
char Token::altend = "*/" |
|
staticprotected |
char Token::combeg = "//" |
|
staticprotected |
char Token::comend = "\n" |
|
staticprotected |
bool Token::hidecom = true |
|
staticprotected |
The documentation for this class was generated from the following files: