[il-antlr-interest: 29453] Re: [antlr-interest] Custom AST node type - guidance needed

2010-07-19 Thread John B. Brodie
On Mon, 2010-07-19 at 14:29 -0400, Bill Andersen wrote: Hi folks Greetings! Having some trouble making ASTs using a custom node type. Before I ask any stupid questions, what is the best place to look on how to do this ( I'm using 3.2 )? I'm finding bits and pieces, some of them

[il-antlr-interest: 29453] Re: [antlr-interest] Custom AST node type - guidance needed

2010-07-19 Thread Bill Andersen
Thanks John Below is my class def.. Eclipse tells me the casts to Token below are required. Running a grammar that executes these constructors tells me I can't cast to Token. Here's a sample tree building expression where this class is used. ^(AS_TYPE_LISTASNode[s.getType($ID.text)]