[antlr-interest] Treeparser with custom nodes?
mmatinlassi at icinetic.com
Fri Nov 4 01:30:23 PDT 2011
I am making a tree parser with custom nodes (C# target).
I get error message "The non-generic type 'Antlr.Runtime.Tree.TreeRewriter'
cannot be used with type arguments".
That error is in Antlr generated tree parser class. I copy the code snippet
public partial class DslDefinitionTree :
CustomTree is my specific node that is inherited from CommonTree. Works fine
with normal parser.
If I remove the type argument, it compiles and runs but, tree parser returns
Any idea what is wrong?
Thanks for help,
More information about the antlr-interest