[antlr-interest] Changing from buildAST=false to buildAST=true

Bryan Ewbank ewbank at gmail.com
Wed Jun 8 11:24:07 PDT 2005


Okay, so I'm changing one of my passes from exploration/annotation to
tree surgery, and therefore need to change it from buildAST=false to
buildAST=true.

The problem I'm encoutering is that this seems to mean I need to
change all references to subrule names from simply "subrule" to
"#subrule" in my actions.

E.g., given this:
     a: #(A b c d)   { b->setValue(foo); }
It appears I need to change this to:
     a: #(A b c d)   { #b->setValue(foo); }

Is this true, or do I misunderstand?

Thanks,
- B


More information about the antlr-interest mailing list