[antlr-interest] On the Importance of Parentheses in Lexer Rules

Kay Roepke kroepke at classdump.org
Sun Nov 12 20:01:04 PST 2006


On 13. Nov 2006, at 4:54 , Randall R Schulz wrote:

> By parenthesizing all my lexer alternatives, my parser now is  
> "working."
> (I use the scare quotes because it's really too early to claim that,
> but I'm certain I'm much closer than I was. I can get a successful
> parse of much of my input corpus.)

That does not sound good. AFAIK this shouldn't have an influence at all.
Could you provide a version that fails? I'd like to take a look.
You can also send that off-list, if you like.

thanks,
-k

-- 
Kay Röpke
http://classdump.org/






More information about the antlr-interest mailing list