[SCM] Lisaac compiler branch, mildred-bugfix, updated. lisaac-0.12-557-g46c12a3
Mildred Ki'Lya
silkensedai at online.fr
Mon Oct 12 21:22:06 UTC 2009
The following commit has been merged in the mildred-bugfix branch:
commit e7f537fb36184634d524c7fe6a4d6d0310921acd
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