[SCM] Lisaac compiler branch, stable, updated. lisaac-0.12-462-g764fed8
Mildred Ki'Lya
silkensedai at online.fr
Sat Sep 5 13:22:12 UTC 2009
The following commit has been merged in the stable branch:
commit 764fed89eb113dae5763016091486cad4a439af7
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date: Tue Aug 4 02:26:21 2009 +0200
prettyprint options using - instead of _
diff --git a/src/lip/lip_slot_code.li b/src/lip/lip_slot_code.li
index 709f447..f01f30c 100644
--- a/src/lip/lip_slot_code.li
+++ b/src/lip/lip_slot_code.li
@@ -126,7 +126,9 @@ Section Public
- print <-
(
" -".print;
- name.print;
+ string_tmp.copy name;
+ string_tmp.replace_all '_' with '-';
+ string_tmp.print;
(argument != NULL).if {
" <".print;
argument.print;
diff --git a/src/lisaac.li b/src/lisaac.li
index b195518..50b96e2 100644
--- a/src/lisaac.li
+++ b/src/lisaac.li
@@ -145,6 +145,7 @@ Section Private
};
string_tmp.copy cmd;
string_tmp.remove_first 1;
+ string_tmp.replace_all '-' with '_';
s := LIP_CODE.get_method (ALIAS_STR.get string_tmp);
((s = NULL) || {s.section != ALIAS_STR.section_public}).if {
"ERROR : Option `".print;
--
Lisaac compiler
More information about the Lisaac-commits
mailing list