Sujet : Re: Toad using many vocabularies
De : stephen (at) *nospam* vfxforth.com (Stephen Pelc)
Groupes : comp.lang.forthDate : 01. Nov 2024, 13:06:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vg2g8q$380c9$1@dont-email.me>
References : 1 2
User-Agent : Usenapp for MacOS
On 31 Oct 2024 at 17:30:45 CET, "mhx" <mhx> wrote:
With vocabularies it quickly becomes a pain when,
e.g., defining words in A, switching to B to define
something there, go back to A and define some more
words ... At least it is when trying to FORGET stuff.
(Assuming you *have* FORGET).
The FORGET issue is mostly a red herring because of compile speed; for
code less than 100k lines we use EMPTY to clean the dictionary and then
start again. 1M lines of code take about 30 seconds to compile.
It is also messy to write a definition that needs
words from different vocabularies.
( Like a book with footnotes that span multiple pages,
or where a chapter can not be read on its own. )
How did you solve that complexity?
Gerald Wodni implemented the VOC-DOT notation for VFX as a
recogniser. To reference a word in another vocabulary, just use
<voc>.<word>
This notation has proven to be very useful, especially when dealing
with a range of byte-oriented serial devices, e.g:
i2c.emit
spi.emit
The notation also reads well. I have no idea who invented it originally
and where the original source code is.
Stephen
-- Stephen Pelc, stephen@vfxforth.comMicroProcessor Engineering, Ltd. - More Real, Less Time133 Hill Lane, Southampton SO15 5AF, Englandtel: +44 (0)78 0390 3612, +34 649 662 974http://www.mpeforth.com MPE website
http://www.vfxforth.com/downloads/VfxCommunity/ downloads