[antlr-interest] Resolving ambiguity

andreas.meyer at smartshift.de andreas.meyer at smartshift.de
Sun Apr 26 02:21:30 PDT 2009


Why do you want to distinguish these cases on a syntactic level? Couldn't you just allow "type varname = expression" and then, in another stage, check that the types match? 

Best,
Andreas

> The problem is somewhere in the 'str_method_var' and 'int_method_var'
> rules. They both have a NAME = expression semicolon . So there's the
> ambiguity.


More information about the antlr-interest mailing list