[SCM] Lisaac compiler branch, mildred-string-cst-rebase, updated. lisaac-0.12-650-g485353b
Mildred Ki'Lya
silkensedai at online.fr
Sat Aug 21 09:35:59 UTC 2010
The following commit has been merged in the mildred-string-cst-rebase branch:
commit 4c3b8606e82e170a2a1b91aabb53c26e40778169
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 0dd66ad..ead89eb 100644
--- a/src/any.li
+++ b/src/any.li
@@ -129,6 +129,8 @@ Section Public
- is_warn_null :BOOLEAN <- ( is_warn_null := LIP_CODE.has_flag "warn-null" );
+ - backend:BACKEND := BACKEND;
+
//
//
//
diff --git a/src/lisaac.li b/src/lisaac.li
index a1818f7..4c4d4a2 100644
--- a/src/lisaac.li
+++ b/src/lisaac.li
@@ -258,6 +258,11 @@ Section Private
is_quiet := LIP_CODE.get_boolean (ALIAS_STR.slot_is_quiet);
is_library := LIP_CODE.get_boolean (ALIAS_STR.slot_is_library);
is_coverage := LIP_CODE.get_boolean (ALIAS_STR.slot_is_coverage);
+ 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 86%
copy from src/item/itm_constant.li
copy to src/tools/backend.li
index 856123d..34d6f39 100644
--- a/src/item/itm_constant.li
+++ b/src/tools/backend.li
@@ -20,18 +20,15 @@
///////////////////////////////////////////////////////////////////////////////
Section Header
- + name := ITM_CONSTANT;
+ + name := BACKEND;
- - copyright := "2003-2007 Benoit Sonntag";
+ - copyright := "2009 Mildred Ki'Lya";
-
- - author := "Sonntag Benoit (bsonntag at loria.fr)";
- - comment := "Parent for all constant";
+ - author := "Mildred Ki'Lya (http://ki.lya.online.fr)";
+ - comment := "Backend";
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 86%
copy from src/item/itm_constant.li
copy to src/tools/backend_c.li
index 856123d..0793443 100644
--- a/src/item/itm_constant.li
+++ b/src/tools/backend_c.li
@@ -20,18 +20,15 @@
///////////////////////////////////////////////////////////////////////////////
Section Header
- + name := ITM_CONSTANT;
+ + name := BACKEND_C;
- - copyright := "2003-2007 Benoit Sonntag";
+ - copyright := "2009 Mildred Ki'Lya";
-
- - author := "Sonntag Benoit (bsonntag at loria.fr)";
- - comment := "Parent for all constant";
+ - author := "Mildred Ki'Lya (http://ki.lya.online.fr)";
+ - comment := "C Backend";
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 86%
copy from src/item/itm_constant.li
copy to src/tools/backend_java.li
index 856123d..6930c48 100644
--- a/src/item/itm_constant.li
+++ b/src/tools/backend_java.li
@@ -20,18 +20,15 @@
///////////////////////////////////////////////////////////////////////////////
Section Header
- + name := ITM_CONSTANT;
+ + name := BACKEND_JAVA;
- - copyright := "2003-2007 Benoit Sonntag";
+ - copyright := "2009 Mildred Ki'Lya";
-
- - author := "Sonntag Benoit (bsonntag at loria.fr)";
- - comment := "Parent for all constant";
+ - author := "Mildred Ki'Lya (http://ki.lya.online.fr)";
+ - comment := "Java Backend";
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