: m_Parser(0), m_Input(
in), m_Line(1),
51m_Position(m_Buffer), m_DataEnd(m_Position),
52m_TokenStart(0), m_Name(name)
67 " -- lexer error: "+
error);
75 " -- lexer error: "<<
error);
87 if(
Char() != symbol )
99 LexerError(
"illegal call: Consume() without NextToken()");
144 if( dataSize > 0 ) {
164 char*
buffer=
new char[bufferSize];
183 size_tread = (size_t)
m_Input.gcount();
221comments.
Add(
i->GetValue());
244 if((
unsigned char)c == 0xEF) {
245 if((
unsigned char)
Char(1) == 0xBB &&
246(
unsigned char)
Char(2) == 0xBF) {
virtual TToken LookupToken(void)=0
void SkipNextComment(void)
bool TokenStarted(void) const
virtual void LexerWarning(const char *error, int err_subcode=0)
void SkipChars(size_t count)
AbstractParser * m_Parser
virtual void LexerError(const char *error)
list< CComment > m_Comments
void FlushCommentsTo(CComments &comments)
bool CheckSymbol(char symbol)
int CurrentLine(void) const
virtual ~AbstractLexer(void)
AbstractLexer(CNcbiIstream &in, const string &name)
size_t CurrentTokenLength(void) const
AbstractToken m_NextToken
const AbstractToken & FillNextToken(void)
CComment & AddComment(void)
const string & ConsumeAndValue(void)
char FillChar(size_t index)
virtual void LookupComments(void)=0
const char * CurrentTokenEnd(void) const
const char * CurrentTokenStart(void) const
void RemoveLastComment(void)
virtual void EndCommentBlock(void)
char GetSymbol(void) const
TToken GetToken(void) const
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_ERRCODE_X
Returns currently set default error code.
#define ERR_POST_EX(err_code, err_subcode, message)
Error posting with error codes.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
Definition of all error codes used in serial libraries (xser.lib, xcser.lib).
std::istream & in(std::istream &in_, double &x_)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4