[antlr-interest] LT(0)

Braden McDaniel braden at endoframe.com
Sun Apr 6 09:44:51 PDT 2003


On Sun, 2003-04-06 at 12:30, Terence Parr wrote:
> On Saturday, April 5, 2003, at 11:36  PM, Braden McDaniel wrote:
> >> Or LT(1).getLine().
> >
> > But that looks ahead one token, so the line number could be different
> > from the current token... right?
> 
> You may have to define "current token"...  I'd say parsers only have 
> "matched" tokens and "about to be matched" tokens. ;)

I'm just trying to throw a SemanticException, and provide it with
accurate line and column information.

-- 
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