aboutsummaryrefslogtreecommitdiff
path: root/frontend/utilities.dcl
diff options
context:
space:
mode:
authormartinw2000-06-09 15:09:23 +0000
committermartinw2000-06-09 15:09:23 +0000
commitff89baf334aaf2727f8192764bfc9600d578d2a2 (patch)
tree104c566b9c4f0274e129cc3caf5fc38b0dd78fa2 /frontend/utilities.dcl
parentAdded preprocessor directives, so that one and the same source can be (diff)
bugfix in trans. utilites: renaming of mapSt into map_st was necessary, otherwise
the compiler would not be able to compile itself. git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@156 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'frontend/utilities.dcl')
-rw-r--r--frontend/utilities.dcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/utilities.dcl b/frontend/utilities.dcl
index 3ae0b5e..909f859 100644
--- a/frontend/utilities.dcl
+++ b/frontend/utilities.dcl
@@ -30,15 +30,15 @@ isNotEmpty :: ![a] -> Bool
//mapSt :: !(.a -> (.st -> (.c,.st))) ![.a] !.st -> (![.c],!.st)
-mapSt f l s :== mapSt l s
+mapSt f l s :== map_st l s
where
- mapSt [x : xs] s
+ map_st [x : xs] s
# (x, s) = f x s
- mapSt_result = mapSt xs s
+ mapSt_result = map_st xs s
(xs, _) = mapSt_result
#! s = second_of_2_tuple mapSt_result
= ([x : xs], s)
- mapSt [] s
+ map_st [] s
= ([], s)
second_of_2_tuple t :== e2