Re: Toad using many vocabularies

Liste des GroupesRevenir à cl forth 
Sujet : Re: Toad using many vocabularies
De : stephen (at) *nospam* vfxforth.com (Stephen Pelc)
Groupes : comp.lang.forth
Date : 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.com
MicroProcessor Engineering, Ltd. - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)78 0390 3612,  +34 649 662 974
http://www.mpeforth.com
   MPE website
http://www.vfxforth.com/downloads/VfxCommunity/
   downloads

Date Sujet#  Auteur
31 Oct 24 * Toad using many vocabularies14sjack
31 Oct 24 `* Re: Toad using many vocabularies13mhx
1 Nov 24  +* Re: Toad using many vocabularies2sjack
1 Nov 24  i`- Re: Toad using many vocabularies1sjack
1 Nov 24  +- Re: Toad using many vocabularies1Anton Ertl
1 Nov 24  `* Re: Toad using many vocabularies9Stephen Pelc
1 Nov 24   +* Re: Toad using many vocabularies5Ruvim
1 Nov 24   i+* Re: Toad using many vocabularies2Anthony Howe
1 Nov 24   ii`- Re: Toad using many vocabularies1Ruvim
1 Nov 24   i+- Re: Toad using many vocabularies1Ruvim
1 Nov 24   i`- Re: Toad using many vocabularies1sjack
1 Nov 24   `* Re: Toad using many vocabularies3sjack
2 Nov 24    `* Re: Toad using many vocabularies2sjack
3 Nov 24     `- Re: Toad using many vocabularies1albert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal