On 15 Jul 2005, at 03:42, [EMAIL PROTECTED] wrote:
I need to figure out how I can augment the generated file to get
the absolute input file position within two rules:
start file position...end file position.

Such that I can fopen, fseek, fread a "context" later on,
after the entire parsing and processing is performed.

Because of buffering, you can't use such functions directly. So there seems to be essentially two methods, first, add a byte count in each rule, and second, check out how %option yylineno is implemented, and tweak the skeleton file for your purposes.

Is there a mailing list for GNU flex?

I think this list is as much Flex there is, but strictly speaking, it isn't distributed under a GNU copyright, but a BSD one.

  Hans Aberg




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

Reply via email to