added type grammar to readme, add example, del spho loc
This commit is contained in:
parent
a22c9726cd
commit
7e3c7c88ea
3 changed files with 47 additions and 35 deletions
27
README.md
27
README.md
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue