Fix basic tests
This commit is contained in:
parent
23261ec380
commit
7c313b3faa
2 changed files with 8 additions and 1 deletions
7
Makefile
7
Makefile
|
|
@ -22,4 +22,11 @@ clean :
|
|||
rm -r src/Grammar
|
||||
rm language
|
||||
|
||||
test :
|
||||
./language ./sample-programs/basic-1
|
||||
./language ./sample-programs/basic-2
|
||||
./language ./sample-programs/basic-3
|
||||
./language ./sample-programs/basic-4
|
||||
./language ./sample-programs/basic-5
|
||||
|
||||
# EOF
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ add x y = x + y;
|
|||
|
||||
double n = n + n;
|
||||
|
||||
apply f x = \y -> f x y;
|
||||
apply f x = \y. f x y;
|
||||
|
||||
main = apply (id add) ((\x. x + 1) 1) (double 3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue