diff options
author | Camil Staps | 2018-02-07 17:26:28 +0100 |
---|---|---|
committer | Camil Staps | 2018-02-07 17:26:28 +0100 |
commit | 8b13d1d81812175f457deede92773bd07a4947c7 (patch) | |
tree | e0c75bb12d0913ae847d7e9de1dbe2607657774d | |
parent | Merge branch 'master' of gitlab.science.ru.nl:cstaps/compiler-construction (diff) |
Fix example program
-rw-r--r-- | test/example1.spl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/example1.spl b/test/example1.spl index 80c6a46..d896c3d 100644 --- a/test/example1.spl +++ b/test/example1.spl @@ -28,7 +28,7 @@ main() :: -> Void { var ok = True; while(n < 20) { facN = facR(n); - if(facN != facI(n) || facN != facL(n) { + if(facN != facI(n) || facN != facL(n)) { print(n : facN : facI(n) : facL(n) : []); ok = False; } @@ -87,7 +87,7 @@ swap(tuple) :: (a, a) -> (a, a) { } // list append -aooend(l1, l2) :: [t] [t] -> [t] { +append(l1, l2) :: [t] [t] -> [t] { if(isEmpty(l1)) { return l2; } else { |