Im thinking of making a scripting language, so these are the parts needed, please correct me if you see any error: lexer: converts things like "a + b" to NUMBER CHARACTER NUMBER or "int a" to DECL_TYPE ID and all all ids and their types to a lookup table. parser: checks the lexer combined with the lookup table for errors. compiler: converts the code into compiled code, hopefully faster than pure interpretation of the original :)
reality is only an option
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement