After typing up my intro page for my idea of a Fortran2C translator and reading some of the documentation I mentioned I was chomping at the bit to try it out to see how far I could get. Well I’ve had some progress already!
Creating the front-end actually worked out easier than I was expecting. BNFC isn’t perfect but, once you get used to it’s quirks and adjust for it’s shortcomings, it is a real boon to creating a language front-end. Mind you it still requires some fore-knowledge of the workings and use of Flex/Bison (or lex/yacc). What follows is my progress in the creation of a Fortran to C translator. I’ll update this list as I get parts of the translator working:
- Fortran 2 C Translator
- The front-end (Part 1)
- The front-end (Part 2)
- BNFC Quirks
- LALR Shift/Reduce and Reduce/Reduce Errors
- Generated Code