Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Refactor backend module instantiation #39

Open
2 of 4 tasks
jeromesimeon opened this issue Mar 23, 2018 · 1 comment
Open
2 of 4 tasks

Refactor backend module instantiation #39

jeromesimeon opened this issue Mar 23, 2018 · 1 comment

Comments

@jeromesimeon
Copy link
Member

jeromesimeon commented Mar 23, 2018

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:

  • 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
  • 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
Copy link
Member Author

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant