2 ascii syntax
rhi edited this page 2023-11-04 08:36:51 -04:00
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.

i like the full-unicode syntax better so i use it in examples, but it's not mandatory. you can give the compiler the --ascii flag to print error messages this way.

what full unicode ascii only
type universes ; ★¹ Type; Type1 or Type^1
universe displacement f^1
natural type Nat
ω suffix on keywords caseω, defω, etc case#, def#, …
function types ω.(a : A) → B a #.(a : A) -> B a
function values λ x ⇒ e fun x => e
pair types (a : A) × B a (a : A) ** B a
case expressions case … of { p ⇒ e } case … of { p => e }
equality types a ≡ b : A a == b : A
equality proofs δ i ⇒ e dfun i => e
inline type annotations e ∷ A e :: A