[SCM] Lisaac compiler branch, mildred-string-cst, updated. lisaac-0.12-614-g5e0ea86
Mildred Ki'Lya
silkensedai at online.fr
Fri Nov 13 11:58:20 UTC 2009
The following commit has been merged in the mildred-string-cst branch:
commit 256395b46df860bf96bebedcf3d20349c8d2723c
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date: Wed Aug 5 00:50:32 2009 +0200
add backend support
diff --git a/src/any.li b/src/any.li
index 11c7e42..8bec90d 100644
--- a/src/any.li
+++ b/src/any.li
@@ -88,10 +88,12 @@ Section Public
- is_optimization:BOOLEAN;
- inline_level:INTEGER := 17;
- - is_java:BOOLEAN; // Fuck the Java!
+ - is_java:BOOLEAN;
- is_statistic:BOOLEAN;
- is_quiet:BOOLEAN;
+
+ - backend:BACKEND := BACKEND;
//
//
diff --git a/src/lisaac.li b/src/lisaac.li
index bdf6a17..bb08e8e 100644
--- a/src/lisaac.li
+++ b/src/lisaac.li
@@ -260,6 +260,11 @@ Section Private
inline_level := LIP_CODE.get_integer (ALIAS_STR.slot_inline_level);
is_statistic := LIP_CODE.get_boolean (ALIAS_STR.slot_is_statistic);
is_quiet := LIP_CODE.get_boolean (ALIAS_STR.slot_is_quiet);
+ is_java.if {
+ backend := BACKEND_JAVA;
+ } else {
+ backend := BACKEND_C;
+ };
//
((input_name = NULL) || {input_name.is_empty}).if {
"ERROR: `input_file' is empty.\n".print;
diff --git a/src/item/itm_constant.li b/src/tools/backend.li
similarity index 85%
copy from src/item/itm_constant.li
copy to src/tools/backend.li
index cd48718..6bce17b 100644
--- a/src/item/itm_constant.li
+++ b/src/tools/backend.li
@@ -19,19 +19,19 @@
// http://isaacproject.u-strasbg.fr/ //
///////////////////////////////////////////////////////////////////////////////
Section Header
-
- + name := ITM_CONSTANT;
- - copyright := "2003-2007 Benoit Sonntag";
+ + name := BACKEND;
+
+ - copyright := "2009 Mildred Ki'Lya";
+
+ - author := "Mildred Ki'Lya (http://ki.lya.online.fr)";
+ - comment := "Backend";
-
- - author := "Sonntag Benoit (bsonntag at loria.fr)";
- - comment := "Parent for all constant";
-
Section Inherit
-
- + parent_itm_code:Expanded ITM_CODE;
-
+
+ + parent_any: Expanded ANY;
+
Section Public
- - is_constant:BOOLEAN := TRUE;
+
+
diff --git a/src/item/itm_constant.li b/src/tools/backend_c.li
similarity index 85%
copy from src/item/itm_constant.li
copy to src/tools/backend_c.li
index cd48718..a8dbd5f 100644
--- a/src/item/itm_constant.li
+++ b/src/tools/backend_c.li
@@ -19,19 +19,19 @@
// http://isaacproject.u-strasbg.fr/ //
///////////////////////////////////////////////////////////////////////////////
Section Header
-
- + name := ITM_CONSTANT;
- - copyright := "2003-2007 Benoit Sonntag";
+ + name := BACKEND_C;
+
+ - copyright := "2009 Mildred Ki'Lya";
+
+ - author := "Mildred Ki'Lya (http://ki.lya.online.fr)";
+ - comment := "C Backend";
-
- - author := "Sonntag Benoit (bsonntag at loria.fr)";
- - comment := "Parent for all constant";
-
Section Inherit
-
- + parent_itm_code:Expanded ITM_CODE;
-
+
+ + parent_backend: Expanded BACKEND;
+
Section Public
- - is_constant:BOOLEAN := TRUE;
+
+
diff --git a/src/item/itm_constant.li b/src/tools/backend_java.li
similarity index 85%
copy from src/item/itm_constant.li
copy to src/tools/backend_java.li
index cd48718..ac4c7ea 100644
--- a/src/item/itm_constant.li
+++ b/src/tools/backend_java.li
@@ -19,19 +19,19 @@
// http://isaacproject.u-strasbg.fr/ //
///////////////////////////////////////////////////////////////////////////////
Section Header
-
- + name := ITM_CONSTANT;
- - copyright := "2003-2007 Benoit Sonntag";
+ + name := BACKEND_JAVA;
+
+ - copyright := "2009 Mildred Ki'Lya";
+
+ - author := "Mildred Ki'Lya (http://ki.lya.online.fr)";
+ - comment := "Java Backend";
-
- - author := "Sonntag Benoit (bsonntag at loria.fr)";
- - comment := "Parent for all constant";
-
Section Inherit
-
- + parent_itm_code:Expanded ITM_CODE;
-
+
+ + parent_backend: Expanded BACKEND;
+
Section Public
- - is_constant:BOOLEAN := TRUE;
+
+
--
Lisaac compiler
More information about the Lisaac-commits
mailing list