[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Locations suggest
From: |
John W. Millaway |
Subject: |
Re: Locations suggest |
Date: |
Mon, 31 Dec 2001 16:30:11 -0800 (PST) |
> One should perhaps equip Flex with better token location recording, for use
> with error messages, etc:
Good idea. We've already integrated the bison YYLTYPE values into the reentrant
scanner (these are placeholders for line/col information -- but no code
actually fills them in).
Now is a good time to mention that the "performance penalty" cited in the docs
for %option lineno is an overstatement -- it's just a loop over yytext to check
for '\n'. This is where we would stick the code to maintain column information.
-John
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com