[antlr-interest] LT(0)

Braden McDaniel braden at endoframe.com
Sat Apr 5 13:20:52 PST 2003


On Thu, 2003-04-03 at 17:53, Terence Parr wrote:
> On Thursday, April 3, 2003, at 02:47  PM, mwwickline wrote:
> 
> > I can't find anything in the documentation that explicitly states
> > whether you can do "LT(0)" and where it's allowed.  I'm getting a core
> 
> LT(0) is meaningless, I'm afraid.  First symbol of lookahead is LT(1) :)

Hm... I've been using "LT(0)->getLine()" to get the current line number.
I'm not interested in actually looking ahead. What should I be doing
instead?

-- 
Braden McDaniel                           e-mail: <braden at endoframe.com>
<http://endoframe.com>                    Jabber: <braden at jabber.org>


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list