2005/5/9

     
 

class TokenizedSource

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

acdk::cfgscript::TokenizedSource Class Reference

#include <SourceTokenizer.h>

Inheritance diagram for acdk::cfgscript::TokenizedSource:

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 Types

typedef acdk::lang::sys::core_vector<
SourceToken
TokenContainer

Public Member Functions

 TokenizedSource (INP(RString) fileName, int flags=0)
 TokenizedSource (INP(RString) fileName, INP(RString) sourceText, int flags=0)
 TokenizedSource (INP(RString) fileName, INP(acdk::io::RReader) sourceReader, int flags=0)
void parseAll ()
RString getCodeOfLine (int lineNo)
 return Nil if line cannot be found

SourceTokengetSourceToken (int tkidx)
int getEndTokenIdx ()
RString _dumpTokens ()
virtual void getCollectableFields (FieldReferences &fields)
 retrun the collectable fields of this object (all Objects fields) will be re-implemented for each class by methods generated by acdkmc If this is manually implemented, the flag ObjectHasLocalGc should be set.


Public Attributes

TokenContainer _tokenStack
int _tokenIdx
int _endTokenIdx
RString _fileName
RString _sourceText
acdk::io::RReader _reader
acdk::io::RStreamTokenizer _streamTokenizer
bool _sourceTokenized
int _flags
 STFlags currently only 0 or STParseTemplate.


Protected Member Functions

void _loadSource ()
void _parseTemplate ()
int _parseTemplateText ()
int _parseSource ()


Member Typedef Documentation

typedef acdk::lang::sys::core_vector<SourceToken> acdk::cfgscript::TokenizedSource::TokenContainer
 


Constructor & Destructor Documentation

acdk::cfgscript::TokenizedSource::TokenizedSource INP(RString fileName,
int  flags = 0
 

acdk::cfgscript::TokenizedSource::TokenizedSource INP(RString fileName,
INP(RString sourceText,
int  flags = 0
 

acdk::cfgscript::TokenizedSource::TokenizedSource INP(RString fileName,
INP(acdk::io::RReader sourceReader,
int  flags = 0
 


Member Function Documentation

RString acdk::cfgscript::TokenizedSource::_dumpTokens  ) 
 

void acdk::cfgscript::TokenizedSource::_loadSource  )  [protected]
 

int acdk::cfgscript::TokenizedSource::_parseSource  )  [protected]
 

void acdk::cfgscript::TokenizedSource::_parseTemplate  )  [protected]
 

int acdk::cfgscript::TokenizedSource::_parseTemplateText  )  [protected]
 

RString acdk::cfgscript::TokenizedSource::getCodeOfLine int  lineNo  ) 
 

return Nil if line cannot be found

virtual void acdk::cfgscript::TokenizedSource::getCollectableFields FieldReferences fields  )  [virtual]
 

retrun the collectable fields of this object (all Objects fields) will be re-implemented for each class by methods generated by acdkmc If this is manually implemented, the flag ObjectHasLocalGc should be set.

Reimplemented from acdk::lang::ObjectBase.

int acdk::cfgscript::TokenizedSource::getEndTokenIdx  )  [inline]
 

SourceToken& acdk::cfgscript::TokenizedSource::getSourceToken int  tkidx  )  [inline]
 

void acdk::cfgscript::TokenizedSource::parseAll  ) 
 


Member Data Documentation

int acdk::cfgscript::TokenizedSource::_endTokenIdx
 

RString acdk::cfgscript::TokenizedSource::_fileName
 

int acdk::cfgscript::TokenizedSource::_flags
 

STFlags currently only 0 or STParseTemplate.

acdk::io::RReader acdk::cfgscript::TokenizedSource::_reader
 

RString acdk::cfgscript::TokenizedSource::_sourceText
 

bool acdk::cfgscript::TokenizedSource::_sourceTokenized
 

acdk::io::RStreamTokenizer acdk::cfgscript::TokenizedSource::_streamTokenizer
 

int acdk::cfgscript::TokenizedSource::_tokenIdx
 

TokenContainer acdk::cfgscript::TokenizedSource::_tokenStack