[antlr-interest] philosophy about translation

Andy Tripp antlr at jazillian.com
Thu Oct 5 13:33:54 PDT 2006


Robert Hill wrote:

>Oops....
>
>^(WORMS CAN+) -> {%{"Open"}}
>
>
>Sorry!
>
>lol
>  
>
void visit(AST ast) {
  if (ast.getFirstChild().type == WORMS) {
    ast.setFirstChild(null);
    Open();
  }
}

More verbose? Yes.
More readable? Depends on the reader, I guess :)


More information about the antlr-interest mailing list