|Columns in flex. Regan.Russell@jcu.edu.au (Regan Russell) (1995-01-23)|
|Re: Columns in flex. C.A.Elliott@dcs.warwick.ac.uk (1995-01-27)|
|Re: Columns in flex. firstname.lastname@example.org (Virendra K. Mehta) (1995-01-27)|
|Re: Columns in flex. email@example.com (1995-01-27)|
|Re: Columns in flex. firstname.lastname@example.org (1995-01-31)|
|Re: Columns in flex. email@example.com (1995-01-28)|
|From:||firstname.lastname@example.org (Shaun Flisakowski)|
|Organization:||U of Wisconsin CS Dept|
|Date:||Sat, 28 Jan 1995 02:49:08 GMT|
Charles Elliott <C.A.Elliott@dcs.warwick.ac.uk> wrote:
>Regan Russell <Regan.Russell@jcu.edu.au> writes:
>>Q: How do I do column sensitive scanning in flex ?
>>Q: Or should I write my own scanner ?
-- snip --
(Description of Charles' flex column counter deleted)
>If there is a better way, please let me know!
For the original user, I would suggest checking column 7 in your
YY_INPUT() routine, and simply dropping the comments out (read
the next line instead)
To keep track of the column info in my flex scanner, I define the
flex macro YY_USER_ACTION to add the yyleng to my counter. This
gives the same effect as what you do above, but it does not have
to explictly appear in every code section.
Return to the
Search the comp.compilers archives again.