Ignore:
Timestamp:
2003-09-04T12:44:52+12:00 (21 years ago)
Author:
kjdon
Message:

added a new token type to the Lex module - UnknownE.
this will match any unrecognisable char - can now just skip over unknown chars rather than spitting the dummy and stopping the parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mgpp/text/GSDLQueryParser.cpp

    r4210 r5449  
    247247      if (phrase) phrase=false;
    248248      else phrase=true;
     249    } else if (el.lexType == UnknownE) {
     250      // just ignore it
    249251    }
    250252    else {
     
    286288      break;
    287289     
     290    } else if (el.lexType == UnknownE) {
     291      // just ignore it
    288292    } else {
    289293      // error
     
    431435      curTree = NotAdd (curTree, newTerm);
    432436     
     437    } else if (el.lexType == UnknownE) {
     438      // just ignore it
    433439    } else {
    434440
Note: See TracChangeset for help on using the changeset viewer.