justfile with qs and lc
This commit is contained in:
parent
33e5dcd49b
commit
e2afa2b775
3 changed files with 7 additions and 2 deletions
6
Justfile
6
Justfile
|
|
@ -51,3 +51,9 @@ hmdp FILE:
|
|||
|
||||
bidp FILE:
|
||||
cabal run language -- -t bi -d -p {{FILE}}
|
||||
|
||||
quicksort:
|
||||
cabal run language -- -t bi sample-programs/working/quicksort.crf
|
||||
|
||||
lc:
|
||||
cabal run language -- -t bi sample-programs/working/lambda_calculus-2.crf
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ extra-source-files:
|
|||
Grammar.cf
|
||||
|
||||
common warnings
|
||||
ghc-options: -W
|
||||
ghc-options: -w
|
||||
|
||||
executable language
|
||||
import: warnings
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ quicksort xs = case xs of
|
|||
-- [5, 2, 8, 9, 6, 0, 1]
|
||||
main = let list = Cons 5 (Cons 2 (Cons 8 (Cons 9 (Cons 6 (Cons 0 (Cons 1 Nil)))))) in
|
||||
printList (quicksort list)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue