[antlr-interest] Problem with return values in ANTLR 3
Terence Parr
parrt at cs.usfca.edu
Wed Dec 21 15:14:02 PST 2005
On Dec 21, 2005, at 3:09 PM, Jim Idle wrote:
> I have found that you need to do this (though it is probably a bug and
> you should use the $ - please notify wildly if you change this Ter
> as my
> grammars will suddenly break for no apparent reason ;-)):
>
> : 'Checked' '=' ('true' {result = true; } |'false') ';'
This should not compile ultimately, though it does now. I will later
add _ or whatever so that you must properly use $. The solution here
cannot be done with any input fix...i'm working on the fix right
now. Almost done.
Ter
More information about the antlr-interest
mailing list