mirror of
https://github.com/anoma/juvix.git
synced 2024-12-18 20:31:51 +03:00
06d459695d
This PR changes the Nockma representation of builtin Bool and list-like types to make them compatible with Anoma. True and False are now compiled to the Nockma atoms 0 and 1 respectively. For inductive types that have exactly two constructors, one of arity zero and one of arity two, we compile the arity zero constructor to Nockma zero, and the arity two constructor to a Nockma cell. In particular a Juvix stdlib List will be compiled to an Anoma/Nockma list. This is necessary for compatibility with the layout of resource and resource logic types in Anoma. In tests we avoid using the StackRef memory reference because it will be removed as part of the JuvixTree work. --------- Co-authored-by: Łukasz Czajka <62751+lukaszcz@users.noreply.github.com> |
||
---|---|---|
.. | ||
Asm | ||
Positive.hs |