[antlr-interest] Extending TreeRuleReturnScope
Diehl, Matthew J
matthew.j.diehl at intel.com
Wed Aug 8 15:42:04 PDT 2007
> I would like each of my rules to have something like:
>
> public static class abstract_literal_return extends
> TreeRuleReturnScope
> {
> public VectorInfo vi; //or something like that...
> public StringTemplate st;
> public Object getTemplate() { return st; }
> public String toString() { return
> st==null?null:st.toString(); }
> };
Nevermind, I decided to just make a perl script to add it, lol.
Matt
More information about the antlr-interest
mailing list