On 03/04/2011 03:28 PM, Olivier Lefevre wrote:
> Just for my understanding of ANTLR, though, I wonder if
> there isn't a solution at the lexer level: some way to tell
> the lexer that if it sees a 'fun2(' then it *must* look for
> an ID2 next.

That would involve the lexer knowing something about the parsing
context, which it doesn't.  Your entire character stream gets tokenized
before the parser even gets run....

> Regards,
> 
> -- O.L.
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address


-- 
Kevin J. Cummings
[email protected]
[email protected]
[email protected]
Registered Linux User #1232 (http://counter.li.org)

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to