[antlr-interest] Exception when generating tree grammar

Luigi Iannone iannone at cs.manchester.ac.uk
Thu Aug 4 08:01:22 PDT 2011


It works,

Thanks,

Luigi
On 4 Aug 2011, at 15:41, Stephen Tuttlebee wrote:

> Well, to refresh my memory on this term rewriting stuff you're doing, I 
> looked at Terence Parr's Language Implementation Patterns book which has 
> a section about this (if you have the book, it's p138 in the pdf edition).
> 
> I think then it might be your tree construction rewrite rules that are 
> syntactically incorrect.
> Maybe it should be:
> -> $single
> rather than:
> -> ^($single)
> 
> Hope it works this time...
> Stephen
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list