I basically want to create my own language. But instead of compiling a high level language into a low level language, I just want to translate my language to another high level language.
I fist looked at Learning to write a compiler but it seems that those tutorials assume that you want to compile a high level language to assembler, but I just want to translate a language to another.
Because I also know Haskell I looked at Scheme in 48hours but it seems that this is more a scheme interpreter written in Haskell.
I searched a bit more and I found Source To Source compiler, but I don't want to add any language features I just want to change the syntax.
Where would I start if I want to translate a language into another one?
Is every compiler tutorial helpful for the task that I want to solve?
Are there tools that could help me?
- Is this a task that ANTLR is designed to solve?