> In the meantime it would be nice if you could implement > SaveState/RestoreState methods > in LexerString... It would be far easier for you to determine the amount > of savable data. :) > (I know, I tried...) Is better would be to make lexer was DFA (with int state). But it is difficult without lexer generator. And macros can introduce new keyworns... Vlad