Colobot
|
#include <CBotDll.h>
Public Member Functions | |
CBotToken () | |
Constructors. More... | |
CBotToken (const CBotToken *pSrc) | |
CBotToken (const CBotString &mot, const CBotString &sep, int start=0, int end=0) | |
CBotToken (const char *mot, const char *sep=nullptr) | |
~CBotToken () | |
Destructor. | |
int | GetType () |
Returns the type of token. | |
CBotString & | GetString () |
makes the string corresponding to this token | |
CBotString & | GetSep () |
makes the following separator token | |
int | GetStart () |
position of the beginning in the text | |
int | GetEnd () |
end position in the text | |
CBotToken * | GetNext () |
gives the next token in the list | |
CBotToken * | GetPrev () |
gives the previous token in a list | |
void | SetString (const char *name) |
void | SetPos (int start, int end) |
long | GetIdKey () |
void | AddNext (CBotToken *p) |
adds a token (a copy) | |
const CBotToken & | operator= (const CBotToken &src) |
Static Public Member Functions | |
static CBotToken * | CompileTokens (const char *p, int &error) |
transforms the entire program | |
static void | Delete (CBotToken *pToken) |
releases the list | |
static bool | DefineNum (const char *name, long val) |
static CBotToken * | NextToken (char *&program, int &error, bool first=false) |
static void | Free () |
Responsible for token management
CBotToken::CBotToken | ( | ) |
Constructors.
contructors
|
static |
finds the next token