#include <Token.h>
Public Types | |
enum | { ID_END_OF_FILE = -1, ID_UNKNOWN = -2, ID_ERROR = -3, ID_WARNING = -4 } |
Public Member Functions | |
Token (int=0, LanguageID lang=LanguageID(0), const char *="") | |
Token (const Token &) | |
virtual | ~Token () |
void | print (ostream &) const |
virtual ListElement * | duplicate () |
void | reset (int=0, const char *=0, LanguageID=LanguageID(0)) |
void | location (const Location &loc) |
void | cont_lines (Array< int > *cl) |
int | line_breaks () const |
void | macro_generated () |
void | macro_call () |
const char * | text () const |
DString & | dtext () const |
char * | get_static_text () const |
int | type () const |
const Location & | location () const |
bool | is_macro_generated () const |
bool | is_macro_call () const |
bool | is_core () const |
bool | is_identifier () const |
bool | is_keyword () const |
bool | is_wildcard () const |
bool | is_preprocessor () const |
bool | is_directive () const |
bool | is_whitespace () const |
bool | is_comment () const |
bool | is_macro_op () const |
bool | is_open () const |
bool | is_comma () const |
bool | is_close () const |
void * | operator new (size_t) |
void | operator delete (void *) |
Static Public Attributes | |
static LanguageID | comment_id |
static LanguageID | pre_id |
static LanguageID | dir_id |
static LanguageID | cpp_id |
static LanguageID | white_id |
static LanguageID | wildcard_id |
static LanguageID | keyword_id |
static LanguageID | open_id |
static LanguageID | macro_op_id |
static LanguageID | identifier_id |
static LanguageID | comma_id |
static LanguageID | close_id |
Puma::Token::Token | ( | int | = 0 , |
|
LanguageID | lang = LanguageID(0) , |
|||
const char * | = "" | |||
) |
Puma::Token::Token | ( | const Token & | ) |
virtual Puma::Token::~Token | ( | ) | [virtual] |
void Puma::Token::print | ( | ostream & | ) | const |
virtual ListElement* Puma::Token::duplicate | ( | ) | [inline, virtual] |
Implements Puma::ListElement.
void Puma::Token::reset | ( | int | = 0 , |
|
const char * | = 0 , |
|||
LanguageID | = LanguageID(0) | |||
) |
void Puma::Token::location | ( | const Location & | loc | ) | [inline] |
void Puma::Token::cont_lines | ( | Array< int > * | cl | ) | [inline] |
int Puma::Token::line_breaks | ( | ) | const |
void Puma::Token::macro_generated | ( | ) | [inline] |
void Puma::Token::macro_call | ( | ) | [inline] |
const char* Puma::Token::text | ( | ) | const |
DString& Puma::Token::dtext | ( | ) | const |
char* Puma::Token::get_static_text | ( | ) | const |
int Puma::Token::type | ( | ) | const [inline] |
const Location& Puma::Token::location | ( | ) | const [inline] |
bool Puma::Token::is_macro_generated | ( | ) | const [inline] |
bool Puma::Token::is_macro_call | ( | ) | const [inline] |
bool Puma::Token::is_core | ( | ) | const [inline] |
bool Puma::Token::is_identifier | ( | ) | const [inline] |
bool Puma::Token::is_keyword | ( | ) | const [inline] |
bool Puma::Token::is_wildcard | ( | ) | const [inline] |
bool Puma::Token::is_preprocessor | ( | ) | const [inline] |
bool Puma::Token::is_directive | ( | ) | const [inline] |
bool Puma::Token::is_whitespace | ( | ) | const [inline] |
bool Puma::Token::is_comment | ( | ) | const [inline] |
bool Puma::Token::is_macro_op | ( | ) | const [inline] |
bool Puma::Token::is_open | ( | ) | const [inline] |
bool Puma::Token::is_comma | ( | ) | const [inline] |
bool Puma::Token::is_close | ( | ) | const [inline] |
void* Puma::Token::operator new | ( | size_t | ) |
void Puma::Token::operator delete | ( | void * | ) |
LanguageID Puma::Token::comment_id [static] |
LanguageID Puma::Token::pre_id [static] |
LanguageID Puma::Token::dir_id [static] |
LanguageID Puma::Token::cpp_id [static] |
LanguageID Puma::Token::white_id [static] |
LanguageID Puma::Token::wildcard_id [static] |
LanguageID Puma::Token::keyword_id [static] |
LanguageID Puma::Token::open_id [static] |
LanguageID Puma::Token::macro_op_id [static] |
LanguageID Puma::Token::identifier_id [static] |
LanguageID Puma::Token::comma_id [static] |
LanguageID Puma::Token::close_id [static] |