mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 17:32:00 +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 |
||
---|---|---|
.. | ||
FullExamples | ||
Imports | ||
MicroJuvix | ||
MiniC | ||
MiniHaskell | ||
QualifiedConstructor | ||
QualifiedSymbol | ||
QualifiedSymbol2 | ||
StdlibList | ||
Termination | ||
Axiom.mjuvix | ||
Foreign.mjuvix | ||
HelloWorld.mjuvix | ||
Inductive.mjuvix | ||
Literals.mjuvix | ||
minijuvix.yaml | ||
Operators.mjuvix | ||
Polymorphism.mjuvix | ||
ShadowPublicOpen.mjuvix |