[SCM] Lisaac compiler branch, stable, updated. lisaac-0.12-553-gd711c1d

Mildred Ki'Lya silkensedai at online.fr
Mon Oct 12 21:26:56 UTC 2009


The following commit has been merged in the stable branch:
commit d711c1d7037a1b3b279d05c0d5e02c274bb6867b
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date:   Mon Oct 12 23:13:39 2009 +0200

    Add error functions with 2 POSITION

diff --git a/src/any.li b/src/any.li
index aa4dc7f..21ac0a9 100644
--- a/src/any.li
+++ b/src/any.li
@@ -260,12 +260,28 @@ Section Public
     POSITION.send_error;
   );
 
+  - syntax_error2 (p1:POSITION, p2:POSITION,txt:ABSTRACT_STRING) <-
+  (
+    p1.put_error syntax text txt;
+    p1.put_position;
+    p2.put_position;
+    POSITION.send_error;
+  );
+
   - semantic_error (pos:POSITION,txt:ABSTRACT_STRING) <-
   ( 
     pos.put_error semantic text txt;
     pos.put_position;
     POSITION.send_error;
   );
+
+  - semantic_error2 (p1:POSITION, p2:POSITION,txt:ABSTRACT_STRING) <-
+  (
+    p1.put_error semantic text txt;
+    p1.put_position;
+    p2.put_position;
+    POSITION.send_error;
+  );
   
   - warning_error (pos:POSITION,txt:ABSTRACT_STRING) <-
   (
@@ -274,6 +290,14 @@ Section Public
     POSITION.send_error;
   );
 
+  - warning_error2 (p1:POSITION, p2:POSITION,txt:ABSTRACT_STRING) <-
+  (
+    p1.put_error warning text txt;
+    p1.put_position;
+    p2.put_position;
+    POSITION.send_error;
+  );
+
   - message_error (pos:POSITION,txt:ABSTRACT_STRING) <-
   (
     is_verbose.if {

-- 
Lisaac compiler



More information about the Lisaac-commits mailing list