Some special characters in ids; new demos

Adds support for several special characters in identifiers. Adds a demo
for converting values to source code and another for checking equality.
Updates the existing demo and tests to reflect new names for functions
returning booleans.
This commit is contained in:
2025-01-23 15:46:40 -06:00
committed by James Eversole
parent 118062d33c
commit 10c7cc367d
7 changed files with 159 additions and 86 deletions

View File

@ -29,11 +29,11 @@ tricu > "Hello, world!"
tricu < -- Intensionality! We can inspect the structure of a function.
tricu < triage = (\a b c : t (t a b) c)
tricu < test = triage "Leaf" (\z : "Stem") (\a b : "Fork")
tricu < test t t
tricu < test (t t)
tricu > "Stem"
tricu < -- We can even write a function to convert a function to source code
tricu < toTString id
tricu > "t (t (t t)) t"
tricu < -- We can even write a function to convert a term back to source code
tricu < toSource not?
tricu > "(t (t (t t) (t t t)) (t t (t t t)))"
```
## Installation and Use