[antlr-interest] unary minus

Michael Bedward michael.bedward at gmail.com
Sat Mar 7 20:00:26 PST 2009


Hi Anders,

I have a fairly simpler grammar that has unary minus working ok.
Perhaps it might provide some hints...

http://code.google.com/p/jai-tools/source/browse/trunk/jiffle/src/main/antlr/jaitools/jiffle/parser/Jiffle.g

Look for the unary_expr rule.  I doubt if how I do it is best practice
but it works.

Michael


More information about the antlr-interest mailing list