kDB: Knowledge DataBase
|
Public Types | |
enum | Type { UNFINISHED_STRING = -4 , END_OF_FILE = -3 , END_OF_LINE = -2 , UNKNOWN = -1 , SEMI = 0 , COLON , COMA , DOT , STARTBRACE , ENDBRACE , STARTBRACKET , ENDBRACKET , STARTBOXBRACKET , ENDBOXBRACKET , EQUAL , QUESTION , UNDERSCORECOLON , CIRCUMFLEXCIRCUMFLEX , FLOAT_CONSTANT , INTEGER_CONSTANT , STRING_CONSTANT , URI_CONSTANT , BINDING , IDENTIFIER , LANG_TAG , CURIE_CONSTANT , DELETE , DATA , INSERT , A , TRUE , FALSE , LOAD_FILE } |
Public Member Functions | |
Token (const knowCore::Curie &_curie, int _line, int _column) | |
Token (Type _type, int _line, int _column) | |
Token (Type _type, const QString &_string, int _line, int _column) | |
bool | isExpressionTerminal () |
bool | isConstant () const |
bool | isPrimary () const |
QString | toString () const |
Static Public Member Functions | |
static QString | typeToString (Type) |
Public Attributes | |
Type | type |
type of the token | |
int | line |
line of the token | |
int | column |
Column of the token. | |
QString | string |
String or identifier name. | |
knowCore::Curie | curie |
Token::Token | ( | Type | _type, |
int | _line, | ||
int | _column ) |
Creates a token of the given type
Token::Token | ( | Type | _type, |
const QString & | _string, | ||
int | _line, | ||
int | _column ) |
Creates an identifier or a strstring constant or a number constant