added type grammar to readme, add example, del spho loc

This commit is contained in:
Ellen Arvidsson 2025-05-05 13:05:03 +02:00
parent a22c9726cd
commit 7e3c7c88ea
3 changed files with 47 additions and 35 deletions

View file

@ -1 +1,26 @@
# log-e-sappho
# log-e-sappho
experimental type system implementation
## sappho grammar
```
s, t ::= s | t (disjunction, a.k.a. union)
| s & t (conjunction, a.k.a. intersection)
| s => t (implication)
| s -> t (arrow, a.k.a. function)
| forall x . t (forall, polymorphic)
| box t (box, modular logic)
| a [t..] (type operator application)
| x (variable)
| n (nominal)
| true (true, a.k.a. top)
| false (false, a.k.a. bottom)
| { m : t } (member, a.k.a. atomic record)
x ∈ var
n ∈ nominal
a ∈ opname
```