1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-07 16:22:14 +03:00
juvix/tests/positive/Symbols.juvix
Łukasz Czajka 6bfe727a0e
Add syntax keyword (#2107)
* Closes #2007
2023-05-22 12:50:07 +02:00

37 lines
549 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module Symbols;
import Stdlib.Data.Nat open;
╘⑽╛ : Nat;
╘⑽╛ := suc 9;
-- no - function!?
- : Nat -> Nat -> Nat;
- := (+);
- : Nat -> Nat -> Nat;
- := (-);
* : Nat -> Nat -> Nat;
* := (*);
syntax infixl 6 ;
: Nat -> Nat -> Nat;
:= -;
syntax infixl 7 ·;
· : Nat -> Nat -> Nat;
· := *;
0 : Nat;
0 := ╘⑽╛ ╘⑽╛ · zero;
主功能 : Nat;
主功能 := 0;
axiom = : Type;
K : Nat → Nat → Nat;
K =a@zero (=) := =a · =;
K =a@(suc =) == := = · ==;