Go to the documentation of this file.Go to the SVN repository for this file.
63 if (
Char(1) ==
':' &&
Char(2) ==
'=' ) {
109 else if ( c >=
'a' && c <=
'z' ) {
115 else if ( c >=
'A' && c <=
'Z' ) {
140 if (
Char(1) ==
'-' ) {
148 if (
Char(1) ==
'*' ) {
181 if (
Char(1) ==
'-' ) {
187 if (
Char(1) ==
'/' ) {
217 if (
Char(1) !=
'\"' ) {
224 if ( c < ' ' && c >
'\0' ) {
258 case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
259 case '9':
case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
268 LexerWarning(
"binary string contains hexadecimal digits", 8);
292 else if ( c ==
'-' ) {
312 if (c ==
'.' || c ==
'e' || c ==
'E' || c ==
'-' || c ==
'+') {
340 case '0':
case '1':
case '2':
case '3':
case '4':
341 case '5':
case '6':
case '7':
case '8':
case '9':
353 #define CHECK(keyword, t, length) \
354 if ( memcmp(token, keyword, length) == 0 ) return t
TToken LookupKeyword(void)
void AddStringChar(char c)
bool AllowIDsEndingWithMinus(void) const
TToken LookupBinHexString(void)
TToken LookupNumber(void)
void LookupIdentifier(void)
virtual void LookupComments(void) override
ASNLexer(CNcbiIstream &in, const string &name)
virtual TToken LookupToken(void) override
bool TokenStarted(void) const
virtual void LexerWarning(const char *error, int err_subcode=0)
void SkipChars(size_t count)
size_t CurrentTokenLength(void) const
CComment & AddComment(void)
void AddChars(size_t count)
const char * CurrentTokenStart(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
#define CHECK(keyword, t, length)
std::istream & in(std::istream &in_, double &x_)