[antlr-interest] unary minus

Johannes Luber jaluber at gmx.de
Sat Mar 7 05:18:13 PST 2009


Anders Hessellund schrieb:
> Thanks,
> 
> but it doesn't work. Perhaps I should just turn backtracking and
> memoisation on? It just seems to me that unary minus must be such a
> common thing that there was a best practice for handling it.
> 
> -- AH
> 

I've attached the C# grammar - maybe you can pare it down to your
supported operators.

Johannes
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CSharp3Lexer.g
Url: http://www.antlr.org/pipermail/antlr-interest/attachments/20090307/53567fe3/attachment-0002.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CSharp3ParserSyntax.g
Url: http://www.antlr.org/pipermail/antlr-interest/attachments/20090307/53567fe3/attachment-0003.pl 


More information about the antlr-interest mailing list