Hi Everyone,
I'm new to SableCC but find it exciting already.
I'm using versions 3.2 and 3.6 on both the Mac (JDK 1.6) and Win7 (JDK 1.7).
I replaced this production (which I copied from
http://sablecc.sourceforge.net/documentation/cst-to-ast.html):
exp =
{plus} exp plus factor {-> New exp.plus(exp, factor.exp) }
| {minus} exp minus factor {-> New exp.minus(exp, factor.exp) }
| {factor} factor {-> factor.exp}
;
with
exp = {plus} exp plus factor {-> New exp.plus(exp, factor.exp)} |
{minus} exp minus factor {-> New exp.minus(exp, Null)} | // Null as 2nd argument
{factor} factor {-> factor.exp };
and I'm now getting this error message when trying to generate a parser:
java.lang.RuntimeException: [36,50] expecting #PExp# when #Null# was found.
Any pointer would be much appreciated.
Thanks,
budi