Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
CBotToken Class Reference

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=NULL)
 
 ~CBotToken ()
 Destructor.
 
int GetType ()
 Returns the type of token.
 
CBotStringGetString ()
 makes the string corresponding to this token
 
CBotStringGetSep ()
 makes the following separator token
 
int GetStart ()
 position of the beginning in the text
 
int GetEnd ()
 end position in the text
 
CBotTokenGetNext ()
 gives the next token in the list
 
CBotTokenGetPrev ()
 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 CBotTokenoperator= (const CBotToken &src)
 

Static Public Member Functions

static CBotTokenCompileTokens (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 CBotTokenNextToken (char *&program, int &error, bool first=false)
 
static void Free ()
 

Constructor & Destructor Documentation

CBotToken::CBotToken ( )

Constructors.

contructors

Member Function Documentation

CBotToken * CBotToken::NextToken ( char *&  program,
int &  error,
bool  first = false 
)
static

finds the next token


The documentation for this class was generated from the following files: