We should have the ability to load in some prelude code before beginning a compile or run. This would allow us to remove a lot of code that sets up pre-defined things in the compiler and symbol table.
The most convenient method seems to be to add an option to the compiler that lets us process the prelude file and output static and dynamic information for loading into subsequent runs. The static information would need to populate the initial environment used by the semantic analyser, and the dynamic information would be used by the runtime.
We should have the ability to load in some prelude code before beginning a compile or run. This would allow us to remove a lot of code that sets up pre-defined things in the compiler and symbol table.
The most convenient method seems to be to add an option to the compiler that lets us process the prelude file and output static and dynamic information for loading into subsequent runs. The static information would need to populate the initial environment used by the semantic analyser, and the dynamic information would be used by the runtime.