mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 10:03:22 +03:00
5b38727d39
* [minic] Translate TypeFunction to a C function pointer * [minic] Add define macros for nullary functions For example in the translation of: inductive Nat { zero : Nat; suc : Nat → Nat; }; The zero constructor is translated to a nullary C function: static inline Nat_13_t * new_Zero_14_nullary() and a macro: \#define new_Zero_14 (new_Zero_14_nullary()) so that it can be referenced subsequently by the unapplied name 'new_Zero_14'. A similar translation is applied to nullary top-level functions. This means that uncurried higher-order functions now work. * [chore] ormolu and hlint fixes * [minic] Implement PR review suggestions * [chore] Fix formatting |
||
---|---|---|
.. | ||
expected.golden | ||
Input.mjuvix | ||
minijuvix.yaml |