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:
@ -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
|
||||
|
Reference in New Issue
Block a user