[antlr-interest] The right way to invoke templates with nullarguments?
Terence Parr
parrt at cs.usfca.edu
Fri Jun 22 01:38:03 PDT 2007
On Jun 22, 2007, at 6:32 PM, Tim Clark wrote:
> Listen to the sound of a penny dropping!
>
> Should have been obvious, but I blame the documentation (and my old
> brain :) - note the subtle difference:
>
> A (not allowed by Antlr): stat2={$s2 == null ? null : $s2.st}
Oh, right! Yeah, it was even worse. $s2 is correct syntax, but I
don't let you test that w/o an attribute. Yup, i need to find a way
to deal with this.
Ter
More information about the antlr-interest
mailing list