Skip to content

Conversation

@oskarabrahamsson
Copy link
Contributor

This should hopefully fix issue #374.

The translator asks ml_progLib for the current module when a type is registered, so take care when calling register_type on types that would cause register_type to get called recursively, or those things might also end up as if they are living within your module.

lookup_cons can now look up a constructor name defined anywhere
(not just Short names). This commit fixes the breakage in the
translator so that translation works through the entire basis library,
at least.

ml_monad_translatorScript.sml is fixed too, but
ml_monad_translatorLib.sml remains broken by these changes.
@oskarabrahamsson oskarabrahamsson changed the title Translator module ctors Make translator aware of constructors which live inside modules Aug 19, 2018
@oskarabrahamsson oskarabrahamsson changed the title Make translator aware of constructors which live inside modules Make translator aware of datatype constructors that live inside modules Aug 19, 2018
@xrchz
Copy link
Member

xrchz commented Aug 20, 2018

Nice work! Breaks the bootstrap translation currently. Reopen when fixed.

@xrchz xrchz closed this Aug 20, 2018
@xrchz
Copy link
Member

xrchz commented Aug 21, 2018

Now is the bootstrap translation diverging?

@oskarabrahamsson
Copy link
Contributor Author

Yes, there's likely a never-ending metis_tac in an EqualityType proof. I'll re-open this later.

@oskarabrahamsson
Copy link
Contributor Author

I re-wrote the EqualityType proof in the translator w/o metis-calls in a way so that it hopefully can't get stuck forever on things. It seems a lot of register_type calls became faster, as a side-effect.

@xrchz xrchz added the test failing regression test failed on the latest commit of this pull request label Aug 22, 2018
To get the regression test running again...
@xrchz xrchz removed the test failing regression test failed on the latest commit of this pull request label Aug 22, 2018
@xrchz xrchz merged commit 48b96e8 into master Aug 23, 2018
@xrchz xrchz deleted the translator-module-ctors branch August 23, 2018 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants