Download V5N3 - Forth

Transcript
Dummy Name Field. What it finds inThere are at least two major shortstead is the Graft Field of VOCZ. (FIND) comings to the present vocabulary orthen looks in this field, gets the pointer ganization:
to the Name Field of the last-defined
work in WC?, and continues its search.
(1) No pointer is kept to the first
This same tricking of (FIND) occurs at
word in a new vocabulary, only
each intersection in the tree until (FIND)
to the last; hence, rearranging the
finally ends up at the base of the tree,
branches on the vocabulary tree
in the FORTH vocabulary, at the Link
is cumbersome.
Field of LIT, where it finds a zero and
exits.
(2) The search routine only looks
at the “current” and “context”
The term “vocabulary” has been
vocabularies, and is thus limited
carried over from pre-FIG Forths,
in regard to generalized search
where it had a meaning closer to what
patterns.
one would expect. A more descriptive
name for the FIG-Forth version might
In my next article, we’ll look at some
well be VOCABULARY.BRANCH.
of the proposals for vocabulary structuring.
To review, in the current setup in
FIG-Forth,
Illustrative figures were kindly provided
by Valpar International, -E.R.
(1) Dictionary searches may
repeatedly search various vocabularies within one search. For
instance, the FORTH vocabulary is
generally searched twice.
P
(2) Dictionary searches search all
of each vocabulary-branch
through which they pass, not just
the part “below” the intersection. “Chronology” of definitions does not, per se, determine
the search path.
; !
0
IMMEDIATE
Personal licensing for TRS-80:
$129.95 for MMSFORTH, or
“3+4TH” User System with
FORTHWRITE, DATAHANDLER and FORTHCOM
for $399.95.
Personal licensing for IBM
PC: $249.95 for MMSFORTH,
or enhanced “3+4TH” User
System with FORTHWRITE,
DATAHANDLER-PLUS and
FORTHCOM for $549.95.
Corporate Site License Extensions from $1,000.
If you recognize the difference
and want to profit from it, ask us
or your dealer about the world
of MMSFORTH.
compiled above where you’re going to
zero a link field should allow you to experiment from the terminal (but not
from screens).
Volume V. No. 3
The speed, compactrress and
extensibility of the
MMSFORTH total software
environment, optimized for
the popular IBM PC and
TRS-80 Models 1, 3 and 4.
An integrated system of
sophisticated application
programs: word processing,
database management,
communications, general
ledger and more, all with
powerful capabilities, surprising speed and ease of use
With source code, for custom
modifications by you or MMS.
The famous MMS support,
including detailed manuals
and examples, telephone tips,
additional programs and
inexpensive program updates,
User Groups worldwide, the
MMSFORTH Newsletter,
Forth-related books, workshops and professional
consulting.
A World of
Difference!
Where does this lead us? The structure can be customized, to an extent,
once it is understood: for instance,
storing a zero into a word’s link field
can stop a search, or redirecting a link
can alter the search pattern. Remember, though, that some definition for
the word whose name is the null character must remain in the search chain,
or the system won’t know how to deal
with the end of a line. The usual definition is next to that of QUERY, or,
HEX 8081 HERE
: X R> DROP
DECIML
The MMSFORTH
System.
Compare.
NWJFORTh
d
6
ilr
FOR TRS-80 MODELS 1,3 & 4
IBM PC,XT, AND COMPAQ
MILLER MICROCOMPUTER SERVICES
61 Lake Show Road, Natick, MA 01760
(611) 653-6136
9
FORTH Dimensions