dlyubimov/HBase-Lattice — Issue #8: Antlr-based codegen?
Author: dlyubimov
Created: 2011-12-22 19:50:45+00:00
State: open

What are good techniques for code generation?

Antlr has something called string templates but i don't think it is really a visitor pattern there. But I am not that good with Antlr.

In particular, statement ordering and multiple iterations over model tree seem to be a problem to me.

But if i am dumb then it would be possible to rewrite cube specification in a domain specific grammar and generate compilers just by running a different AST Antlr processor on the same AST tree.