On 16 Jul 2005, at 19:56, [EMAIL PROTECTED] wrote:

So as long as "every other rules", move the file offset properly,
I'm in business.

The lexer reads a chunk from the file into its buffer, and then forgets about the file and its file position. So no rule moves the file offset at all; it is only changed when the buffer runs out of characters, and needs to be refilled.

In a lexer .c file with this option on, there is a segment right
before the lexer switch statement that looks something like:

This seems more "acceptable".

How does it manage unput and similar re-feed?

All stuff is handled via the lexer buffer, and no stuff is put back into the file.

if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
{
  yyfilepos += yyleng;
}


You should have something like that.

  Hans Aberg




_______________________________________________
Help-flex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-flex

Reply via email to