From e2afa2b775250d75f706dbd11a66bfaed6387712 Mon Sep 17 00:00:00 2001 From: sebastianselander Date: Tue, 23 May 2023 14:11:51 +0200 Subject: [PATCH] justfile with qs and lc --- Justfile | 6 ++++++ language.cabal | 2 +- sample-programs/working/quicksort.crf | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) 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) -