3 ms·
"I want to programmatically generate ASTs and feed them in" Going by the experience with preprocessors in Ocaml, not the best idea IMO.
by foolinux 12y ago
"I want to programmatically generate ASTs and feed them in"
Going by the experience with preprocessors in Ocaml, not the best idea IMO.
- logicchains 12y agoDoesn't Ocamlpp4 or whatever its called generate OCaml source code and pass that to the compiler, not OCaml AST? The new ppx extension in 4.02 allows direct manipulation of OCaml AST, but that hasn't been used enough yet to determine its effectiveness.