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: [email protected]
[mailto:[email protected]] On Behalf Of Mari Matinlassi
Sent: Friday, November 04, 2011 9:30 AM
To: [email protected]
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



List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to