mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 08:27:03 +03:00
3fbc9c7c55
Closes #1644 #1635
31 lines
335 B
Plaintext
31 lines
335 B
Plaintext
module Input;
|
|
|
|
type Unit :=
|
|
unit : Unit;
|
|
|
|
terminating
|
|
loop : {A : Type} -> A;
|
|
loop := loop;
|
|
|
|
const : {A : Type} -> A -> A -> A;
|
|
const x y := x;
|
|
|
|
fail : Unit;
|
|
fail := const unit loop;
|
|
|
|
axiom Action : Type;
|
|
|
|
compile Action {
|
|
c ↦ "int";
|
|
};
|
|
|
|
axiom Int_0 : Action;
|
|
compile Int_0 {
|
|
c ↦ "0";
|
|
};
|
|
|
|
main : Action;
|
|
main := Int_0;
|
|
|
|
end;
|