[antlr-interest] Treeparser with custom nodes?
Mari Matinlassi
mmatinlassi at icinetic.com
Mon Nov 7 00:58:09 PST 2011
Hi,
I am answering here on my own question :)
I had tree parser option
filter = true
Removed that and works fine now..
Mari
-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Mari Matinlassi
Sent: Friday, November 04, 2011 9:30 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Treeparser with custom nodes?
Hi,
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
below.
public partial class DslDefinitionTree :
Antlr.Runtime.Tree.TreeRewriter<CustomTree>
{
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
null.
Any idea what is wrong?
Thanks for help,
mari
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