removed precompiled quicksort and LC
This commit is contained in:
parent
85adae9958
commit
930bcc9bba
3 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
|
@ -46,8 +46,8 @@ A program is a list of defs separated by semicolons, which in turn is either a b
|
||||||
`Program ::= [Def]`
|
`Program ::= [Def]`
|
||||||
|
|
||||||
```hs
|
```hs
|
||||||
data Test () where
|
data Test where
|
||||||
Test : Test ()
|
Test : Test
|
||||||
test : Int
|
test : Int
|
||||||
test = 0
|
test = 0
|
||||||
```
|
```
|
||||||
|
|
@ -84,12 +84,12 @@ The type can be any type for parsing, but only `TData` will type check.
|
||||||
The list of Inj is separated by white space. Using new lines is recommended for ones own sanity.
|
The list of Inj is separated by white space. Using new lines is recommended for ones own sanity.
|
||||||
|
|
||||||
```hs
|
```hs
|
||||||
data Maybe (a) where
|
data Maybe a where
|
||||||
Nothing : Maybe (a)
|
Nothing : Maybe a
|
||||||
Just : a -> Maybe (a)
|
Just : a -> Maybe a
|
||||||
```
|
```
|
||||||
The parens are necessary for every data type to make the grammar unambiguous.
|
The parens are necessary for every data type to make the grammar unambiguous.
|
||||||
Thus in `data Bool () where ...` the parens *do* *not* represent Unit
|
Thus in `data Bool where ...` the parens *do* *not* represent Unit
|
||||||
|
|
||||||
### Inj
|
### Inj
|
||||||
An inj is a constructor for the data type
|
An inj is a constructor for the data type
|
||||||
|
|
@ -110,7 +110,7 @@ and foralls take one type variable followed by a type.
|
||||||
|
|
||||||
`TVar ::= LIdent`
|
`TVar ::= LIdent`
|
||||||
|
|
||||||
`TData ::= UIdent "(" [Type] ")"`
|
`TData ::= UIdent [Type]`
|
||||||
|
|
||||||
`TFun ::= Type "->" Type`
|
`TFun ::= Type "->" Type`
|
||||||
|
|
||||||
|
|
@ -119,7 +119,7 @@ and foralls take one type variable followed by a type.
|
||||||
```hs
|
```hs
|
||||||
exampleLit : Int
|
exampleLit : Int
|
||||||
exampleVar : a
|
exampleVar : a
|
||||||
exampleData : Maybe (a)
|
exampleData : Maybe a
|
||||||
exampleFun : Int -> a
|
exampleFun : Int -> a
|
||||||
exampleAll : forall a. forall b. a -> b
|
exampleAll : forall a. forall b. a -> b
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Binary file not shown.
BIN
demo/quicksort
BIN
demo/quicksort
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue