PandA-2024.02
|
#include <token_interface.hpp>
Data Structures | |
struct | ltstr |
Public Member Functions | |
int | check_tokens (const char *tok) const |
TreeVocabularyTokenTypes_TokenEnum | bison2token (int bison) const |
treeVocabularyTokenTypes () | |
Data Fields | |
std::map< int, TreeVocabularyTokenTypes_TokenEnum > | from_bisontoken_map |
Map between bison token and token_interface token. More... | |
Static Public Attributes | |
static const char * | tokenNames [] |
static const int | bisontokens [] |
Private Attributes | |
std::map< const char *, int, ltstr > | token_map |
Definition at line 724 of file token_interface.hpp.
treeVocabularyTokenTypes::treeVocabularyTokenTypes | ( | ) |
Definition at line 891 of file token_interface.cpp.
References bisontokens, FIRST_TOKEN, from_bisontoken_map, LAST_TOKEN, token_map, and tokenNames.
TreeVocabularyTokenTypes_TokenEnum treeVocabularyTokenTypes::bison2token | ( | int | bison | ) | const |
Definition at line 885 of file token_interface.cpp.
References el, from_bisontoken_map, and THROW_ASSERT.
int treeVocabularyTokenTypes::check_tokens | ( | const char * | tok | ) | const |
Definition at line 873 of file token_interface.cpp.
References bisontokens, el, and token_map.
|
static |
Definition at line 727 of file token_interface.hpp.
Referenced by check_tokens(), and treeVocabularyTokenTypes().
std::map<int, TreeVocabularyTokenTypes_TokenEnum> treeVocabularyTokenTypes::from_bisontoken_map |
Map between bison token and token_interface token.
Definition at line 730 of file token_interface.hpp.
Referenced by bison2token(), and treeVocabularyTokenTypes().
Definition at line 743 of file token_interface.hpp.
Referenced by check_tokens(), and treeVocabularyTokenTypes().
|
static |
Definition at line 726 of file token_interface.hpp.
Referenced by TI_getTokenName(), and treeVocabularyTokenTypes().