ergo icon indicating copy to clipboard operation
ergo copied to clipboard

Refactor backend module instantiation

Open jeromesimeon opened this issue 7 years ago • 1 comments

It might be necessary/cleaner to instantiate the Q*cert modules for code generation before they are used in Ergo. This would freeze foreign types (e.g., for date/time) which means constructing type models is more natural. This concretely means:

  • [x] Split the Compiler directory into pre-Jura Backend and post-Ergo ErgoCompiler parts
  • [ ] Import the Backend instead of Qcert in the Ergo part of the code
  • [x] Re-factor the built-in operators, CTO to model translation, etc to rely on the instantiated backend compiler
  • [ ] Fix up of backend module types and definitions so it results in cleaner extracted code

jeromesimeon avatar Mar 23 '18 18:03 jeromesimeon

A large part of this item is done in 1dfdc9d. Still further cleanup is needed and we can start to take advantage of the refactoring (for type import, standard library, etc).

jeromesimeon avatar Mar 29 '18 01:03 jeromesimeon