Open eduardoHoefel opened 6 years ago
Hey, thanks for the input. This project was just sort of a test to see if I could implement all the different parts of the translation, but if I ever decide to pick it up again, I'll definitely look into code-generating libraries instead of generating the output "by hand" :-).
I think you're trying to "reinvent the wheel". Take a look at parsing libraries like Parser for python and Yacc for C. Defining a structure like lexical, syntactic and semantic analysis really eases the process a lot.