[antlr-interest] Is the parenthesis node duplication bug fixed yet?

Gary R. Van Sickle g.r.vansickle at att.net
Tue Jun 2 21:53:14 PDT 2009


Hi guys,

I'm using a maybe month-old 3.1.4 snapshot, where this works:

	pointer
		: pointer_guts+
		;
	
	pointer_guts
	  : lc='*' type_qualifier? -> ^(POINTER[$lc, "POINTER"]
type_qualifier?)
	  ;

And this doesn't:

	pointer
	  : (lc='*' type_qualifier?)+ -> ^(POINTER[$lc, "POINTER"]
type_qualifier?)+
	  ;

Does the latter work in the latest snapshots?

Thanks,

-- 
Gary R. Van Sickle



More information about the antlr-interest mailing list