ETHproductions / text2code

An experimental project that turns text into a code equivalent.
http://ethproductions.github.io/text2code/
MIT License
6 stars 0 forks source link

Suggestion: Use parsing libraries #8

Open eduardoHoefel opened 6 years ago

eduardoHoefel commented 6 years ago

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.

ETHproductions commented 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" :-).