Make a new interpreter #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current interpreter (the one in the main branch as of now) is no longer actually connected to the language being compiled in the compiler branch. A new interpreter should take its place, however this time instead of having completely separate code from the compiler, the new interpreter should use either the Core AST or the AST generated after the closure conversion process. This would help in debugging the AST, as any problems in generating the AST would show up in the interpreter as well as the rest of the compiler, whereas any code generation/execution problems would be limited to the compiler.
This is related to #1 as proper scope analysis is required for an interpreter as much as it is required for the compiler.