2005/5/9

     
 

class SourceTokenizer

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::cfgscript::SourceTokenizer Class Reference

#include <SourceTokenizer.h>

Inheritance diagram for acdk::cfgscript::SourceTokenizer:

acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

before executing a CfgScript the source will be parsed to token.

This class is only used inside the interpreter.


Public Member Functions

 SourceTokenizer (INP(RTokenizedSource) source, int flags=0)
int nextToken ()
SourceTokennextSourceToken ()
SourceTokencurSourceToken ()
void pushBack ()
acdk::lang::dmi::ScriptVarcurValue ()
RString getCurTokenAsCode ()
int curToken ()
int getFlags ()
void pushFlags (int flags)
void popFlags ()
int getCurrentTokenIndex ()
void setCurrentTokenIndex (int tokenIndex)
RString _dumpTokens ()

Static Public Member Functions

SourceToken_getEofToken ()
 return token represents EOF


Public Attributes

RTokenizedSource _tokenized
int _tokenIdx
int _endTokenIdx

Protected Member Functions

bool _skipToken ()

Protected Attributes

acdk::lang::sys::core_vector<
int > 
_flagStack


Constructor & Destructor Documentation

acdk::cfgscript::SourceTokenizer::SourceTokenizer INP(RTokenizedSource source,
int  flags = 0
[inline]
 


Member Function Documentation

RString acdk::cfgscript::SourceTokenizer::_dumpTokens  ) 
 

SourceToken& acdk::cfgscript::SourceTokenizer::_getEofToken  )  [static]
 

return token represents EOF

bool acdk::cfgscript::SourceTokenizer::_skipToken  )  [protected]
 

SourceToken& acdk::cfgscript::SourceTokenizer::curSourceToken  ) 
 

int acdk::cfgscript::SourceTokenizer::curToken  ) 
 

acdk::lang::dmi::ScriptVar& acdk::cfgscript::SourceTokenizer::curValue  ) 
 

int acdk::cfgscript::SourceTokenizer::getCurrentTokenIndex  )  [inline]
 

RString acdk::cfgscript::SourceTokenizer::getCurTokenAsCode  )  [inline]
 

int acdk::cfgscript::SourceTokenizer::getFlags  )  [inline]
 

SourceToken& acdk::cfgscript::SourceTokenizer::nextSourceToken  ) 
 

int acdk::cfgscript::SourceTokenizer::nextToken  ) 
 

void acdk::cfgscript::SourceTokenizer::popFlags  )  [inline]
 

void acdk::cfgscript::SourceTokenizer::pushBack  ) 
 

void acdk::cfgscript::SourceTokenizer::pushFlags int  flags  )  [inline]
 

void acdk::cfgscript::SourceTokenizer::setCurrentTokenIndex int  tokenIndex  )  [inline]
 


Member Data Documentation

int acdk::cfgscript::SourceTokenizer::_endTokenIdx
 

acdk::lang::sys::core_vector<int> acdk::cfgscript::SourceTokenizer::_flagStack [protected]
 

int acdk::cfgscript::SourceTokenizer::_tokenIdx
 

RTokenizedSource acdk::cfgscript::SourceTokenizer::_tokenized