Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #26794

Re: Forth200x enhanced locals implementation

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Forth200x enhanced locals implementation
Date 2013-11-03 14:22 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2013Nov3.152200@mips.complang.tuwien.ac.at> (permalink)
References <2013Oct30.180302@mips.complang.tuwien.ac.at>

Show all headers | View raw


anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>So I implemented the X:locals syntax portably, and you can find the
>result in compat/xlocals.fs in
><http://www.complang.tuwien.ac.at/forth/compat.zip>.

Actually a better place is the reference implementations for
Forth200x.  You can find them at

http://www.forth200x.org/reference-implementations/

The new X:locals implementation is

http://www.forth200x.org/reference-implementations/locals.fs

I also saw another implementation there, which I wrote three years ago
(and had mostly forgotten):

http://www.forth200x.org/reference-implementations/extended-locals.fs

Instead of John Hayes recursion-for-reversal approach this
implementation uses the stack and a count-of-locals for achieving the
reversing; it also uses control flow instead of a flag on the stack
for dealing with the locals after "|".  Overall this implementation is
quite a bit more complicated, probably mostly because of the latter
design decision.

You can find the code for all the available reference implementations
and the available tests in

http://www.forth200x.org/forth200x-code.zip

Or if you are only interested in the implementations:

http://www.forth200x.org/extensions.zip

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2013: http://www.euroforth.org/ef13/

Back to comp.lang.forth | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Forth200x enhanced locals implementation anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-10-30 17:03 +0000
  Re: Forth200x enhanced locals implementation "Alex McDonald" <blog@rivadpm.com> - 2013-10-30 22:23 +0000
    Re: Forth200x enhanced locals implementation anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-10-31 12:06 +0000
      Re: Forth200x enhanced locals implementation "Alex McDonald" <blog@rivadpm.com> - 2013-10-31 18:01 +0000
        Re: Forth200x enhanced locals implementation anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-11-01 08:46 +0000
          Re: Forth200x enhanced locals implementation "Alex McDonald" <blog@rivadpm.com> - 2013-11-01 10:36 +0000
  Re: Forth200x enhanced locals implementation albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-10-31 14:21 +0000
  Re: Forth200x enhanced locals implementation anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-11-03 14:22 +0000

csiph-web