Colobot
Public Member Functions | Static Public Member Functions | List of all members
CBotToken Class Reference

#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 ()
 

Detailed Description

Responsible for token management

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: