Writing language converter in ANTLR
- by Stefan
I'm writing a converter between some dialects of the same programming language. I've found a grammar on the net - it's complex and handles all the cases. Now I'm trying to write the appropriate actions.
Most of the input is just going to be rewritten to output. What I need to do is parse function calls, do my magic (rename function, reorder…