[antlr-interest] ambiguous parsing

Hugo greneche.hugo at gmail.com
Tue Feb 2 10:03:52 PST 2010


hi, sorry for this basic question but i try to parse a specific language.

my problem is that my language could have :

a variable declaration like this:

var tmp = ABCDEF09   where ABCDEF09 is considered as hexadecimal string

and a function declaration like this

func ABCDEF09 where ABCDEF09 is considered as normal user defined 
function identifier

my question is how could i make the distinguish between this 2 case

thanks a lot




More information about the antlr-interest mailing list