summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2018-02-07 17:26:28 +0100
committerCamil Staps2018-02-07 17:26:28 +0100
commit8b13d1d81812175f457deede92773bd07a4947c7 (patch)
treee0c75bb12d0913ae847d7e9de1dbe2607657774d
parentMerge branch 'master' of gitlab.science.ru.nl:cstaps/compiler-construction (diff)
Fix example program
-rw-r--r--test/example1.spl4
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 {