Ask HN: Compiler frameworks for AST Transformations?
4 points| ianbertolacci | 9 years ago | reply
We've been using the Rose compiler framework (http://rosecompiler.org/) in our group for some time. However, it's not my favorite and I'd like to use an alternative.
I've been wondering if there was something similar that was better maintained and supported. LLVM seems like an obvious choice, but it's too low level to be really effective. We would end up writing a lot more analysis to discover things that are obvious at high-level representations ("Is that a for loop?").
Looking for something: 1) very accessible; other people should be able to build and use my transformations with relative ease. 2) well documented; no mysterious functions and types that I have to use. 3) easy-to-use/intuitive (for compiler writers).
Thanks!
[+] [-] _RPM|9 years ago|reply
[+] [-] ianbertolacci|9 years ago|reply
However, I'm more looking for a tool that, on its own, can be used as a full compiler, with the added ability to put myself in the middle of the front and back end.
LLVM has a similar ability where you can develop a pass over the IR and manipulate it.
[+] [-] msdos|9 years ago|reply