mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 01:52:11 +03:00
803d2008d9
* remove ≔ from the language and replace it by := * revert accidental changes in juvix input mode * update stdlib submodule * rename ℕ by Nat in the tests and examples * fix shell tests
32 lines
489 B
Plaintext
32 lines
489 B
Plaintext
module Symbols;
|
||
|
||
open import Stdlib.Data.Nat;
|
||
|
||
╘⑽╛ : Nat;
|
||
╘⑽╛ := suc nine;
|
||
|
||
-- no - function!?
|
||
- : Nat -> Nat -> Nat;
|
||
- := (+);
|
||
|
||
(-) : Nat -> Nat -> Nat;
|
||
(-) := (-);
|
||
|
||
(*) : Nat -> Nat -> Nat;
|
||
(*) := (*);
|
||
|
||
infixl 6 -;
|
||
- : Nat -> Nat -> Nat;
|
||
- := (-);
|
||
|
||
infixl 7 ·;
|
||
· : Nat -> Nat -> Nat;
|
||
· := (*);
|
||
|
||
(0) : Nat;
|
||
(0) := ╘⑽╛ - ╘⑽╛ · zero;
|
||
|
||
主功能 : Nat;
|
||
主功能 := (0);
|
||
end;
|