13#ifndef ML_PARSER_BASE_H
14#define ML_PARSER_BASE_H
48 virtual int init (
const char *source);
const char * _pNext
Pointer to current parser position.
static char * newString(const std::string &str)
const char * getCurrentPos()
Get current parser position.
virtual const char * getErrorMessage(int errorCode)
Get error string for errorCode.
static void deleteString(char *str)
Dispose a string allocated with newString().
bool _eos
End-of-string flag.
bool endOfSource()
Return end-of-source flag.
@ kEndOfSource
End of source reached.
@ kNumBaseErrorCodes
Highest error code +1.
@ kEmptyString
Source string null or empty.
const char * _source
Source string.
virtual int init(const char *source)
virtual ~ParserBase()
Make destructor virtual to avoid warnings.
void skipWhitespace()
Proceed to next non-whitespace character.
#define MLBASEEXPORT
defined Header file mlBaseInit.h