aboutsummaryrefslogtreecommitdiff
path: root/src/interp/word.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-04-19 16:12:17 +0000
committerdos-reis <gdr@axiomatics.org>2011-04-19 16:12:17 +0000
commit9430f000bbcedcd6f0edbe1c4852cb2b51c50ccc (patch)
tree97ad3fbf69b7c15f20c2dbef3f2a11860ec6fd0b /src/interp/word.boot
parentb893a938b4051bc30a9c44bdcf6000bff11969c4 (diff)
downloadopen-axiom-9430f000bbcedcd6f0edbe1c4852cb2b51c50ccc.tar.gz
* boot/tokens.boot: charUpcase, charDowncase, stringUpcase,
singDowncase, valueEq? are new builtin functions. * boot/ast.boot (bfMembr): Tidy.
Diffstat (limited to 'src/interp/word.boot')
-rw-r--r--src/interp/word.boot5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interp/word.boot b/src/interp/word.boot
index 8d706adc..0b1a3b92 100644
--- a/src/interp/word.boot
+++ b/src/interp/word.boot
@@ -42,7 +42,7 @@ buildFunctionTable(dicts) ==
buildWordTable u ==
table:= hashTable 'EQ
for s in u repeat
- key := UPCASE s.0
+ key := charUpcase stringChar(s,0)
HPUT(table,key,[[s,:wordsOfString s],:HGET(table,key)])
for key in HKEYS table repeat
HPUT(table,key,
@@ -103,7 +103,8 @@ getListOfFunctionNames(fnames) ==
SHUT stream
res
-wordsOfString(s) == [UPCASE x for x in wordsOfStringKeepCase s]
+wordsOfString(s) ==
+ [stringUpcase x for x in wordsOfStringKeepCase s]
wordsOfStringKeepCase s == wordsOfString1(s,0) or [COPY s]