From 4aa53ca4e7916b0900c3053fc7036300249b20f2 Mon Sep 17 00:00:00 2001 From: rhi Date: Sat, 4 Nov 2023 08:36:51 -0400 Subject: [PATCH] Update 'ascii syntax' --- ascii-syntax.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ascii-syntax.md b/ascii-syntax.md index 84aca1e..96c0d03 100644 --- a/ascii-syntax.md +++ b/ascii-syntax.md @@ -1,15 +1,15 @@ 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 universe | ★, ★¹ | Type, Type1 or Type^1 | -| universe displacement | f¹ | 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 | +| what | full unicode | ascii only | +|-------------------------|-----------------------|-----------------------------| +| type universes | `★`; `★¹` | `Type`; `Type1` or `Type^1` | +| universe displacement | `f¹` | `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` |