diff --git a/Justfile b/Justfile index cd5b955..96be864 100644 --- a/Justfile +++ b/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 diff --git a/language.cabal b/language.cabal index a7960eb..fa7841a 100644 --- a/language.cabal +++ b/language.cabal @@ -16,7 +16,7 @@ extra-source-files: Grammar.cf common warnings - ghc-options: -W + ghc-options: -w executable language import: warnings diff --git a/sample-programs/working/quicksort.crf b/sample-programs/working/quicksort.crf index d15e0e7..1af02c5 100644 --- a/sample-programs/working/quicksort.crf +++ b/sample-programs/working/quicksort.crf @@ -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) -