2007-11-04 03:34:51 +00:00
|
|
|
#ifndef _ISCRIPTPARSER_H_
|
|
|
|
#define _ISCRIPTPARSER_H_
|
|
|
|
|
|
|
|
class IScriptParser {
|
|
|
|
public:
|
2012-03-17 20:01:54 +00:00
|
|
|
virtual ~IScriptParser() {};
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
virtual const char* GetToken( bool ) = 0;
|
|
|
|
virtual char* GetBufferCopy( void ) = 0;
|
|
|
|
virtual int GetTokenOffset( void ) = 0;
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
virtual void SkipBracedSection( void ) = 0;
|
|
|
|
virtual void SkipRestOfLine( void ) = 0;
|
|
|
|
virtual void UndoGetToken( void ) = 0;
|
|
|
|
virtual void ResetParseSession( void ) = 0;
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
virtual void LoadScript( const char* ) = 0;
|
|
|
|
virtual void SetScript( char* ) = 0;
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
virtual void AddBreakChar( char ) = 0;
|
2007-11-04 03:34:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|