2 ms·
Ometa/JS (http://www.tinlizzie.org/ometa/ http://www.tinlizzie.org/ometa/) can be used for code generation, though it's fairly general rather than tailored spec
by _delirium 16y ago
Ometa/JS (http://www.tinlizzie.org/ometa/ http://www.tinlizzie.org/ometa/) can be used for code generation, though it's fairly general rather than tailored specifically to that. It's a generalization of a PEG parser that can go the other way as well: it can match on sequences of characters to build up an AST, and can also match sequences of Javascript objects (like nested lists representing an AST) to convert them to other things. It doesn't have the big library of built-in expression types that CodeModel looks like it has, though (JForLoop, JConditional, etc.).