Hi Enoch,

> Mentioning amforth-shell.py, I think that we should teach it some day to
> substitute Forth constant-s on the fly as we upload the Flash. Let's say
> CONSTANT-s get substituted while constant-s don't. This generalization
> of the current register name substitutions would benefit guys with
> limited Flash memory.

It would be useful indeed. And another step toward a teathered
amforth as well ;)

I've just uploaded an extension that changes standard words (and
only those!) on the fly to lowercase. The code handles miXed CaSe as
well. And since we're on the PC side, there are no restrictions wrt
CPU cycles and code space ;)

+    stdwords = [
+        "IF", "ELSE", "WHILE", "UNTIL", "AGAIN", "BEGIN", "REPEAT",
.....

+            if w.upper() in self.stdwords:
+                w = w.lower()


The list of the standard words ist not yet complete (there are many
of them).

Matthias



------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
DESIGN Expert tips on starting your parallel project right.
http://goparallel.sourceforge.net/
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to