[SCM] Lisaac compiler branch, living-external, updated. lisaac-0.12-548-gf6e3b14

Mildred Ki'Lya silkensedai at online.fr
Thu Oct 8 17:06:26 UTC 2009


The following commit has been merged in the living-external branch:
commit f6e3b14dd44c7381def531d6b5f909a1b0247269
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date:   Thu Oct 8 16:35:57 2009 +0200

    Add test for immortal External slots

diff --git a/tests/living_external.li b/tests/living_external.li
new file mode 100644
index 0000000..d032407
--- /dev/null
+++ b/tests/living_external.li
@@ -0,0 +1,35 @@
+Section Header
+
+  + name := LIVING_EXTERNAL;
+
+Section External
+
+  - foobar n:INTEGER :INTEGER <-
+  (
+    var := n+1
+  );
+
+  - toto n:INTEGER :INTEGER <-
+  (
+    n+1
+  );
+
+Section Public
+
+  - var :INTEGER;
+
+  - main <-
+  (
+    "foobar(1) = ".print;
+    (`foobar(1)`:INTEGER).print;
+    " ".print;
+    var.print;
+    " (2 expected)".println;
+    `
+    #if 0
+    `;
+    toto(1);
+    `
+    #endif
+    `;
+  );

-- 
Lisaac compiler



More information about the Lisaac-commits mailing list