Discussion:
yychar and yyline
(too old to reply)
Ryan Emmett
2004-06-11 15:30:55 UTC
Permalink
I'm working on Assignment 3 and was wondering if there is any way to
access the current character position or line number in Yylex. It
seemed to say in the documentation that yyline and yychar are variables
to be used, but I didn't seem to be able to access this member, or
possibly wasn't accessing it correctly.

Is this possible? Or are we supposed to implement our own increment?

Ryan Emmett
Troy Mark Gonsalves
2004-06-11 18:24:11 UTC
Permalink
You don't need to implement your own. Just read the documentation more
carefully and you'll see what you're missing.

Troy
Post by Ryan Emmett
I'm working on Assignment 3 and was wondering if there is any way to
access the current character position or line number in Yylex. It
seemed to say in the documentation that yyline and yychar are variables
to be used, but I didn't seem to be able to access this member, or
possibly wasn't accessing it correctly.
Is this possible? Or are we supposed to implement our own increment?
Ryan Emmett
Loading...