inkytonik / cooma

The Cooma project is investigating secure programming language design based on fine-grained object capabilities.
Mozilla Public License 2.0
3 stars 2 forks source link

Add support for a prelude #39

Closed inkytonik closed 3 years ago

inkytonik commented 3 years ago

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.

inkytonik commented 3 years ago

Closed by #41