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


Groups > comp.lang.forth > #58372 > unrolled thread

Recognizers and DT-TOKEN:

Started byAlex <alex@rivadpm.com>
First post2017-04-30 03:31 +0100
Last post2017-05-02 15:10 +0000
Articles 20 on this page of 159 — 19 participants

Back to article view | Back to comp.lang.forth


Contents

  Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-04-30 03:31 +0100
    Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-04-29 20:21 -0700
      Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-04-30 03:30 -0500
        Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-04-30 09:51 +0000
          Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-04-30 07:50 -0500
            Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-04-30 14:05 +0100
              Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-04-30 08:11 -0500
                Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-04-30 14:18 +0100
            Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-04-30 14:01 +0000
              Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-04-30 15:36 +0100
                Re: Recognizers and DT-TOKEN: krishna.myneni@ccreweb.org - 2017-05-01 01:48 -0700
                  Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-01 11:13 +0100
                    Re: Recognizers and DT-TOKEN: krishna.myneni@ccreweb.org - 2017-05-01 04:40 -0700
                      Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-01 18:01 +0100
                        Re: Recognizers and DT-TOKEN: krishna.myneni@ccreweb.org - 2017-05-01 11:42 -0700
                          Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-01 20:47 +0100
                            Re: Recognizers and DT-TOKEN: krishna.myneni@ccreweb.org - 2017-05-01 13:56 -0700
                              Re: Recognizers and DT-TOKEN: Julian Fondren <julian.fondren@gmail.com> - 2017-05-01 14:07 -0700
                                Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-01 23:17 +0100
                              Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-01 22:33 +0100
                Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-02 03:49 -0500
                  Re: Recognizers and DT-TOKEN: albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-02 12:27 +0200
                    Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-04 11:42 +0000
                  Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-02 11:41 +0100
                    Re: Recognizers and DT-TOKEN: john <anon@example.com> - 2017-05-02 12:13 +0100
                      Re: Recognizers and DT-TOKEN: "Elizabeth D. Rather" <erather@forth.com> - 2017-05-02 09:42 -1000
                  Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-02 14:13 +0000
                    Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-02 12:32 -0500
                      Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-02 18:55 +0100
                        Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-02 13:05 -0500
                      Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-04 13:18 +0000
                        Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-04 08:55 -0500
                    Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-02 11:36 -0700
                      Re: Recognizers and DT-TOKEN: JennyB <jennybrien@googlemail.com> - 2017-05-03 06:39 -0700
                    Re: Recognizers and DT-TOKEN: krishna.myneni@ccreweb.org - 2017-05-08 10:22 -0700
                      Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-08 11:52 -0700
                        Re: Recognizers and DT-TOKEN: krishna.myneni@ccreweb.org - 2017-05-09 02:45 -0700
                          Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-09 03:47 -0700
                          Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-09 12:52 +0100
                            Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-09 10:38 -0700
                          Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-09 11:08 +0000
                            Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-09 08:33 -0500
                              Re: Recognizers and DT-TOKEN: Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-09 15:39 +0200
                                Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-09 09:14 -0500
                              Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-09 16:40 +0000
                                Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-10 05:48 -0500
                            Re: Recognizers and DT-TOKEN: Joel Rees <joel.rees@gmail.com> - 2017-05-12 07:47 -0700
                  Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-02 11:10 -0700
                    Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-02 11:47 -0700
                    Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-05-02 22:47 +0000
                      Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-03 04:31 -0500
                        Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-04 15:01 +0000
                          Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-04 12:10 -0500
                    Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-03 04:29 -0500
                      Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-03 12:27 -0700
                        Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-04 02:35 -0500
                      Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-04 14:00 +0000
                        Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-04 12:21 -0500
                          Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-04 19:14 +0100
                            Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-05 09:17 -0500
                              Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-05 07:31 -0700
                                Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-05 10:27 -0500
                                Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-05 15:25 +0000
                                  Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-05 12:21 -0700
                                    Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-06 16:37 +0000
                                      Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-06 13:18 -0700
                              Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-05 20:32 +0100
                          Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-05-06 01:06 +0000
                            Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-07 03:54 -0500
                              Re: Recognizers and DT-TOKEN: albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-07 13:46 +0200
                                Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-07 07:59 -0500
                                  Re: Recognizers and DT-TOKEN: JennyB <jennybrien@googlemail.com> - 2017-05-07 11:31 -0700
                                    Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-07 20:22 +0100
                                      Re: Recognizers and DT-TOKEN: JennyB <jennybrien@googlemail.com> - 2017-05-08 04:17 -0700
                                        Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-08 15:30 +0000
                                        Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-08 12:00 -0700
                                    Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-08 13:50 +0000
                                      Re: Recognizers and DT-TOKEN: JennyB <jennybrien@googlemail.com> - 2017-05-08 09:51 -0700
                                        Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-09 15:40 +0000
                                      Re: Recognizers and DT-TOKEN: albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-09 16:32 +0200
                                        Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-09 16:19 +0000
                                          Re: Recognizers and DT-TOKEN: albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-09 18:53 +0200
                                            Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-09 18:12 +0100
                                              Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-09 10:41 -0700
                                                Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-09 19:12 +0100
                                  Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-05-07 22:46 +0000
                                    Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-08 03:50 -0500
                                      Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-08 02:42 -0700
                                        Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-08 03:58 -0700
                                        Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-08 12:35 +0100
                                          Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-08 05:49 -0700
                                            Re: Recognizers and DT-TOKEN: albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-08 16:28 +0200
                                              Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-08 07:54 -0700
                                                Re: Recognizers and DT-TOKEN: albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-08 17:16 +0200
                                                  Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-08 09:23 -0700
                                        Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-08 16:31 +0000
                                          Re: Recognizers and DT-TOKEN: mhx@iae.nl - 2017-05-08 11:14 -0700
                                            Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-08 19:27 +0100
                                            Re: Recognizers and DT-TOKEN: albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-09 16:39 +0200
                                            Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-09 14:53 +0000
                                              Re: Recognizers and DT-TOKEN: Joel Rees <joel.rees@gmail.com> - 2017-05-09 20:43 -0700
                                          Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-08 15:02 -0700
                                            Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-09 12:24 +0100
                              Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-05-07 23:34 +0000
                                Re: Recognizers and DT-TOKEN: pahihu <pahihu@gmail.com> - 2017-05-08 01:17 -0700
                                  Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-05-08 12:30 +0000
                                    Re: Recognizers and DT-TOKEN: pahihu <pahihu@gmail.com> - 2017-05-08 07:49 -0700
                                      Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-08 10:58 -0500
                                  Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-08 11:44 +0000
                                    Re: Recognizers and DT-TOKEN: pahihu <pahihu@gmail.com> - 2017-05-08 08:04 -0700
                                      Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-08 17:30 +0000
                                        Re: Recognizers and DT-TOKEN: pahihu <pahihu@gmail.com> - 2017-05-10 04:07 -0700
                                          Re: Recognizers and DT-TOKEN: Ron Aaron <rambamist@gmail.com> - 2017-05-10 14:11 +0300
                                            Re: Recognizers and DT-TOKEN: Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-10 13:59 +0200
                                              Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-10 14:04 +0100
                                                Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-10 14:06 +0100
                                            Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-10 13:02 +0100
                                              Re: Recognizers and DT-TOKEN: pahihu <pahihu@gmail.com> - 2017-05-10 06:07 -0700
                                                Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-10 14:30 +0100
                                                Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-10 11:59 -0700
                                              Re: Recognizers and DT-TOKEN: Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-10 15:10 +0200
                                                Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-10 14:33 +0100
                                                  Re: Recognizers and DT-TOKEN: Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-10 16:08 +0200
                                                    Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-05-10 16:02 +0100
                                                      Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-10 09:10 -0700
                                                      Re: Recognizers and DT-TOKEN: Lars Brinkhoff <lars.spam@nocrew.org> - 2017-05-10 18:38 +0200
                                Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-08 04:03 -0500
                                  Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-05-08 13:32 +0000
                                Re: Recognizers and DT-TOKEN: albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-08 16:11 +0200
                        Re: Recognizers and DT-TOKEN: stephen@mpeforth.com (Stephen Pelc) - 2017-05-04 20:29 +0000
                          Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-07 14:55 +0000
              Re: Recognizers and DT-TOKEN: Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-05-02 02:47 -0500
                Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-05-02 15:02 +0000
      Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-04-30 12:11 +0100
        Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-04-30 06:34 -0700
          Re: Recognizers and DT-TOKEN: Julian Fondren <julian.fondren@gmail.com> - 2017-04-30 06:59 -0700
          Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-04-30 15:04 +0100
        Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-04-30 09:38 -0700
    Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-04-30 09:36 +0000
      Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-04-30 11:46 +0100
        Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-04-30 14:12 +0000
          Re: Recognizers and DT-TOKEN: Alex <alex@rivadpm.com> - 2017-04-30 16:39 +0100
            Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-04-30 09:25 -0700
            Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-04-30 16:23 +0000
        Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-04-30 09:06 -0700
      Re: Recognizers and DT-TOKEN: Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2017-04-30 18:00 +0100
        Re: Recognizers and DT-TOKEN: JennyB <jennybrien@googlemail.com> - 2017-05-01 01:30 -0700
          Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-02 13:06 +0000
            Re: Recognizers and DT-TOKEN: minforth@arcor.de - 2017-05-02 06:24 -0700
              Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-04 13:13 +0000
            Re: Recognizers and DT-TOKEN: JennyB <jennybrien@googlemail.com> - 2017-05-03 04:20 -0700
              Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-04 15:17 +0000
        Re: Recognizers and DT-TOKEN: anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-02 12:46 +0000
          Re: Recognizers and DT-TOKEN: Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2017-05-03 07:58 +0100
            Re: Recognizers and DT-TOKEN: mhx@iae.nl - 2017-05-03 10:52 -0700
    Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-04-30 08:51 -0700
    Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-04-30 22:54 +0000
      Re: Recognizers and DT-TOKEN: Matthias Trute <matthias.trute@gmail.com> - 2017-05-01 01:01 -0700
        Re: Recognizers and DT-TOKEN: Bernd Paysan <bernd@net2o.de> - 2017-05-02 15:10 +0000

Page 1 of 8  [1] 2 3 4 5 6 7 8  Next page →


#58372 — Recognizers and DT-TOKEN:

FromAlex <alex@rivadpm.com>
Date2017-04-30 03:31 +0100
SubjectRecognizers and DT-TOKEN:
Message-ID<oe3i48$qc2$1@dont-email.me>
RFC-D spec http://amforth.sourceforge.net/pr/Recognizer-rfc-D.pdf

I'm finding DT-TOKEN: a bit restrictive.

: dt-token: ( xt-interpret xt-compile xt-postpone "<spaces>name" -- )
     create swap rot , , , ;

   ' i-object
   ' c-object
   ' p-object
dt-token: dt:object

We write a recognizer REC:OBJECTS for objects; it returns DT:OBJECT on 
success.

We've separated out the parsing from the action on a token, but we're 
restricted as to what we can do with the token actions. The recognizer 
and the token are tightly bound. Modifying them requires something along 
the lines of DT>INT! DT>COMP! and DT>POST!. DT:TOKENs are supposed to be 
opaque.

Problem: There's no way of modifying what DT-TOKEN:s do without either 
extra supporting words or per-implementation carnal knowledge.

Solution: I propose replacing DT-TOKEN: with DT-TOKENS, for example 
defined as;

: dt-tokens ( xt-interpret xt-compile xt-postpone -- val )
     here 2>r swap , , r> r> , ;

   ' i-object
   ' c-object
   ' p-object
dt-tokens value dt:object

Now we can save DT:OBJECT and set new actions.

dt:object to save-dt:object

   ' i-debug-object
   ' c-debug-object
   ' p-debug-object
dt-tokens to dt:object

No other changes are required to the proposal. To tightly bind REC:X to 
DT:X as is currently done, use a CONSTANT instead of a VALUE.

-- 
Alex

[toc] | [next] | [standalone]


#58373

Fromminforth@arcor.de
Date2017-04-29 20:21 -0700
Message-ID<503064cf-8b12-4143-a28c-521e6e1a5607@googlegroups.com>
In reply to#58372
Am Sonntag, 30. April 2017 04:31:38 UTC+2 schrieb Alex:
> RFC-D spec http://amforth.sourceforge.net/pr/Recognizer-rfc-D.pdf
> 
> I'm finding DT-TOKEN: a bit restrictive.
> 
> : dt-token: ( xt-interpret xt-compile xt-postpone "<spaces>name" -- )
>      create swap rot , , , ;
> 
>    ' i-object
>    ' c-object
>    ' p-object
> dt-token: dt:object
> 
> We write a recognizer REC:OBJECTS for objects; it returns DT:OBJECT on 
> success.
> 
> We've separated out the parsing from the action on a token, but we're 
> restricted as to what we can do with the token actions. The recognizer 
> and the token are tightly bound. Modifying them requires something along 
> the lines of DT>INT! DT>COMP! and DT>POST!. DT:TOKENs are supposed to be 
> opaque.
> 
> Problem: There's no way of modifying what DT-TOKEN:s do without either 
> extra supporting words or per-implementation carnal knowledge.
> 
> Solution: I propose replacing DT-TOKEN: with DT-TOKENS, for example 
> defined as;
> 
> : dt-tokens ( xt-interpret xt-compile xt-postpone -- val )
>      here 2>r swap , , r> r> , ;
> 
>    ' i-object
>    ' c-object
>    ' p-object
> dt-tokens value dt:object
> 
> Now we can save DT:OBJECT and set new actions.
> 
> dt:object to save-dt:object
> 
>    ' i-debug-object
>    ' c-debug-object
>    ' p-debug-object
> dt-tokens to dt:object
> 
> No other changes are required to the proposal. To tightly bind REC:X to 
> DT:X as is currently done, use a CONSTANT instead of a VALUE.
> 
> -- 
> Alex

This complicated stuff clearly indicates that recognizers are a tool for compiler makers.

Rather worthless for 99.9% of all users.

Then recognizers should not be in the standard IMO.

[toc] | [prev] | [next] | [standalone]


#58385

FromAndrew Haley <andrew29@littlepinkcloud.invalid>
Date2017-04-30 03:30 -0500
Message-ID<eMSdnV8bYqsFPZjEnZ2dnUU7-UOdnZ2d@supernews.com>
In reply to#58373
minforth@arcor.de wrote:
> 
> This complicated stuff clearly indicates that recognizers are a tool
> for compiler makers.
> 
> Rather worthless for 99.9% of all users.

It clearly indicates that something is wrong with the recognizer
proposal, but I don't agree with your comment about 99.9% of all
users.  With Forth there is no artificial separation between a
compiler maker and an application programmer: it's Forth, all the way
down.  An application programmer is a compiler maker, and Forth is all
about creating the best language for your application.

Andrew.

[toc] | [prev] | [next] | [standalone]


#58387

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2017-04-30 09:51 +0000
Message-ID<2017Apr30.115146@mips.complang.tuwien.ac.at>
In reply to#58385
Andrew Haley <andrew29@littlepinkcloud.invalid> writes:
>It clearly indicates that something is wrong with the recognizer
>proposal

It does?  Can you elaborate on that?

>but I don't agree with your comment about 99.9% of all
>users.  With Forth there is no artificial separation between a
>compiler maker and an application programmer: it's Forth, all the way
>down.  An application programmer is a compiler maker, and Forth is all
>about creating the best language for your application.

Hear, hear!

- 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 2017: http://www.euroforth.org/ef17/

[toc] | [prev] | [next] | [standalone]


#58395

FromAndrew Haley <andrew29@littlepinkcloud.invalid>
Date2017-04-30 07:50 -0500
Message-ID<RO-dnQW1TY3gQJjEnZ2dnUU7-fednZ2d@supernews.com>
In reply to#58387
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
> Andrew Haley <andrew29@littlepinkcloud.invalid> writes:
>>It clearly indicates that something is wrong with the recognizer
>>proposal
> 
> It does?  Can you elaborate on that?

What for?  It gets more and more tricky, with weird corner cases, and
has gone far beyond a literal recognizer.

Andrew.

[toc] | [prev] | [next] | [standalone]


#58397

FromAlex <alex@rivadpm.com>
Date2017-04-30 14:05 +0100
Message-ID<oe4n9l$sm3$2@dont-email.me>
In reply to#58395
On 4/30/2017 13:50, Andrew Haley wrote:
> Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>> Andrew Haley <andrew29@littlepinkcloud.invalid> writes:
>>> It clearly indicates that something is wrong with the recognizer
>>> proposal
>>
>> It does?  Can you elaborate on that?
> 
> What for?  

I for one thought you might be a little more helpful.

> It gets more and more tricky, with weird corner cases, and
> has gone far beyond a literal recognizer.

Forth has gone way beyond a simple ITC to run a telescope, but that 
doesn't seem to be bothersome. What corner cases?

-- 
Alex

[toc] | [prev] | [next] | [standalone]


#58398

FromAndrew Haley <andrew29@littlepinkcloud.invalid>
Date2017-04-30 08:11 -0500
Message-ID<CuqdnTXPdugcf5jEnZ2dnUU7-T-dnZ2d@supernews.com>
In reply to#58397
Alex <alex@rivadpm.com> wrote:

> Forth has gone way beyond a simple ITC to run a telescope, but that 
> doesn't seem to be bothersome. What corner cases?

I refer you to the initial post in this thread.  You might think of it
as an interesting problem of using the recognizer facility; others
might think of it as an overcomplicated mess.  Each to their own, I
suppose.

Andrew,

[toc] | [prev] | [next] | [standalone]


#58399

FromAlex <alex@rivadpm.com>
Date2017-04-30 14:18 +0100
Message-ID<oe4o1m$vcd$1@dont-email.me>
In reply to#58398
On 4/30/2017 14:11, Andrew Haley wrote:
> Alex <alex@rivadpm.com> wrote:
> 
>> Forth has gone way beyond a simple ITC to run a telescope, but that
>> doesn't seem to be bothersome. What corner cases?
> 
> I refer you to the initial post in this thread.  You might think of it
> as an interesting problem of using the recognizer facility; others
> might think of it as an overcomplicated mess.  Each to their own, I
> suppose.
> 
> Andrew,
> 

Well, I wrote & illustrated the initial post, so perhaps I can't see the 
corner cases since I'm not in the corner with this. In terms of 
over-complicated mess, if you'd pointed to most of the Forth object 
systems out there (Win32Forth has a cracking case) and said "Wow, that's 
one serious pile of complicated", I would have agreed.

I'm not seeing it here. I'm pointing out that a named item is a poor 
substitute for (as Anton calls them) a handle based item that you can 
then name. That's not complicated, surely?

-- 
Alex

[toc] | [prev] | [next] | [standalone]


#58403

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2017-04-30 14:01 +0000
Message-ID<2017Apr30.160125@mips.complang.tuwien.ac.at>
In reply to#58395
Andrew Haley <andrew29@littlepinkcloud.invalid> writes:
>Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>> Andrew Haley <andrew29@littlepinkcloud.invalid> writes:
>>>It clearly indicates that something is wrong with the recognizer
>>>proposal
>> 
>> It does?  Can you elaborate on that?
>
>What for?  It gets more and more tricky, with weird corner cases, and
>has gone far beyond a literal recognizer.

A classical Andrew Haley.  You have no argument, so you evade the
request to elaborate on your statement by throwing in more
unsubstantiated generalities.

The only thing your responses in this thread show is that you have not
understood the original posting (probably because you did not invest
the time needed to understand it); but you took it as a good
opportunity to express your hatred of recognizers.

- 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 2017: http://www.euroforth.org/ef17/

[toc] | [prev] | [next] | [standalone]


#58404

FromAlex <alex@rivadpm.com>
Date2017-04-30 15:36 +0100
Message-ID<oe4sin$dm3$1@dont-email.me>
In reply to#58403
On 4/30/2017 15:01, Anton Ertl wrote:
> Andrew Haley <andrew29@littlepinkcloud.invalid> writes:
>> Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>>> Andrew Haley <andrew29@littlepinkcloud.invalid> writes:
>>>> It clearly indicates that something is wrong with the recognizer
>>>> proposal
>>>
>>> It does?  Can you elaborate on that?
>>
>> What for?  It gets more and more tricky, with weird corner cases, and
>> has gone far beyond a literal recognizer.
> 
> A classical Andrew Haley.  You have no argument, so you evade the
> request to elaborate on your statement by throwing in more
> unsubstantiated generalities.
> 
> The only thing your responses in this thread show is that you have not
> understood the original posting (probably because you did not invest
> the time needed to understand it); but you took it as a good
> opportunity to express your hatred of recognizers.

Hatred might be a bit strong.

But it is counterproductive to have someone of Andrew's ability (and I 
sincerely mean that; his contributions are generally observant and well 
thought through) serve up little more than "I'm no likee this, no siree" 
without justification.

Perhaps he's explained himself elsewhere, since I understand he wasn't a 
fan at the Bath 2015 EuroForth conference, something Matthias Trute 
alluded to in his proposal. I'd appreciate hearing it if so.

-- 
Alex

[toc] | [prev] | [next] | [standalone]


#58435

Fromkrishna.myneni@ccreweb.org
Date2017-05-01 01:48 -0700
Message-ID<cccd435d-5922-479f-91bd-1b28010a5a86@googlegroups.com>
In reply to#58404
On Sunday, April 30, 2017 at 9:36:10 AM UTC-5, Alex wrote:

> ... "I'm no likee this, no siree" ...


So ... your target audience for W32F are bigot programmers? Very disappointing.

Krishna

[toc] | [prev] | [next] | [standalone]


#58437

FromAlex <alex@rivadpm.com>
Date2017-05-01 11:13 +0100
Message-ID<oe71hu$7sm$1@dont-email.me>
In reply to#58435
On 5/1/2017 09:48, krishna.myneni@ccreweb.org wrote:
> On Sunday, April 30, 2017 at 9:36:10 AM UTC-5, Alex wrote:
> 
>> ... "I'm no likee this, no siree" ...
> 
> 
> So ... your target audience for W32F are bigot programmers? Very disappointing.

Sorry?

-- 
Alex

[toc] | [prev] | [next] | [standalone]


#58438

Fromkrishna.myneni@ccreweb.org
Date2017-05-01 04:40 -0700
Message-ID<d6d91542-de68-4d16-8ef9-c5141b780769@googlegroups.com>
In reply to#58437
On Monday, May 1, 2017 at 5:13:22 AM UTC-5, Alex wrote:
> On 5/1/2017 09:48, krishna.myneni@ccreweb.org wrote:
> > On Sunday, April 30, 2017 at 9:36:10 AM UTC-5, Alex wrote:
> > 
> >> ... "I'm no likee this, no siree" ...
> > 
> > 
> > So ... your target audience for W32F are bigot programmers? Very disappointing.
> 
> Sorry?
> 
> -- 
> Alex

I don't like to nitpick about punctuation, but this is definitely a case where a period is more useful than a question mark.

Krishna

[toc] | [prev] | [next] | [standalone]


#58446

FromAlex <alex@rivadpm.com>
Date2017-05-01 18:01 +0100
Message-ID<oe7pg2$rdo$1@dont-email.me>
In reply to#58438
On 5/1/2017 12:40, krishna.myneni@ccreweb.org wrote:
> On Monday, May 1, 2017 at 5:13:22 AM UTC-5, Alex wrote:
>> On 5/1/2017 09:48, krishna.myneni@ccreweb.org wrote:
>>> On Sunday, April 30, 2017 at 9:36:10 AM UTC-5, Alex wrote:
>>>
>>>> ... "I'm no likee this, no siree" ...
>>>
>>>
>>> So ... your target audience for W32F are bigot programmers? Very disappointing.
>>
>> Sorry?
>>
>> -- 
>> Alex
> 
> I don't like to nitpick about punctuation, but this is definitely a case where a period is more useful than a question mark.
> 
> Krishna
> 

If you want to inspect every phrase or turn of speech and be offended by 
it, that's up to you. I won't be apologising.

-- 
Alex

[toc] | [prev] | [next] | [standalone]


#58448

Fromkrishna.myneni@ccreweb.org
Date2017-05-01 11:42 -0700
Message-ID<0a02e688-243d-457f-b326-7ceddcf3c7fd@googlegroups.com>
In reply to#58446
On Monday, May 1, 2017 at 12:01:58 PM UTC-5, Alex wrote:
> On 5/1/2017 12:40, krishna.myneni@ccreweb.org wrote:
> > On Monday, May 1, 2017 at 5:13:22 AM UTC-5, Alex wrote:
> >> On 5/1/2017 09:48, krishna.myneni@ccreweb.org wrote:
> >>> On Sunday, April 30, 2017 at 9:36:10 AM UTC-5, Alex wrote:
> >>>
> >>>> ... "I'm no likee this, no siree" ...
> >>>
> >>>
> >>> So ... your target audience for W32F are bigot programmers? Very disappointing.
> >>
> >> Sorry?
> >>
> >> -- 
> >> Alex
> > 
> > I don't like to nitpick about punctuation, but this is definitely a case where a period is more useful than a question mark.
> > 
> > Krishna
> > 
> 
> If you want to inspect every phrase or turn of speech and be offended by 
> it, that's up to you. I won't be apologising.
> 
> -- 
> Alex

Truly sad.

[toc] | [prev] | [next] | [standalone]


#58449

FromAlex <alex@rivadpm.com>
Date2017-05-01 20:47 +0100
Message-ID<oe8370$voe$1@dont-email.me>
In reply to#58448
On 5/1/2017 19:42, krishna.myneni@ccreweb.org wrote:
> On Monday, May 1, 2017 at 12:01:58 PM UTC-5, Alex wrote:
>> On 5/1/2017 12:40, krishna.myneni@ccreweb.org wrote:
>>> On Monday, May 1, 2017 at 5:13:22 AM UTC-5, Alex wrote:
>>>> On 5/1/2017 09:48, krishna.myneni@ccreweb.org wrote:
>>>>> On Sunday, April 30, 2017 at 9:36:10 AM UTC-5, Alex wrote:
>>>>>
>>>>>> ... "I'm no likee this, no siree" ...
>>>>>
>>>>>
>>>>> So ... your target audience for W32F are bigot programmers? Very disappointing.
>>>>
>>>> Sorry?
>>>>
>>>> -- 
>>>> Alex
>>>
>>> I don't like to nitpick about punctuation, but this is definitely a case where a period is more useful than a question mark.
>>>
>>> Krishna
>>>
>>
>> If you want to inspect every phrase or turn of speech and be offended by
>> it, that's up to you. I won't be apologising.
>>
>> -- 
>> Alex
> 
> Truly sad.
> 

I also refuse to be held responsible for your disappointment that your 
ability to sniff out even the slightest indication of bigotry through 
orthography on usenet hasn't got you some kind of reward. Use gonnae ha 
tae (as thai lik tae spiel oan ma snited pairt o the voreld) thole it.

But we're way off the subject here. Do you have anything to add to 
Andrew's obvious but as yet unexplained dislike of the recognizer proposal?

-- 
Alex

[toc] | [prev] | [next] | [standalone]


#58450

Fromkrishna.myneni@ccreweb.org
Date2017-05-01 13:56 -0700
Message-ID<d221a0e1-eb0a-4be6-b4ee-efa11273c789@googlegroups.com>
In reply to#58449
On Monday, May 1, 2017 at 2:47:48 PM UTC-5, Alex wrote:
> On 5/1/2017 19:42, krishna.myneni@ccreweb.org wrote:
> > On Monday, May 1, 2017 at 12:01:58 PM UTC-5, Alex wrote:
> >> On 5/1/2017 12:40, krishna.myneni@ccreweb.org wrote:
> >>> On Monday, May 1, 2017 at 5:13:22 AM UTC-5, Alex wrote:
> >>>> On 5/1/2017 09:48, krishna.myneni@ccreweb.org wrote:
> >>>>> On Sunday, April 30, 2017 at 9:36:10 AM UTC-5, Alex wrote:
> >>>>>
> >>>>>> ... "I'm no likee this, no siree" ...
> >>>>>
> >>>>>
> >>>>> So ... your target audience for W32F are bigot programmers? Very disappointing.
> >>>>
> >>>> Sorry?
> >>>>
> >>>> -- 
> >>>> Alex
> >>>
> >>> I don't like to nitpick about punctuation, but this is definitely a case where a period is more useful than a question mark.
> >>>
> >>> Krishna
> >>>
> >>
> >> If you want to inspect every phrase or turn of speech and be offended by
> >> it, that's up to you. I won't be apologising.
> >>
> >> -- 
> >> Alex
> > 
> > Truly sad.
> > 
> 
> I also refuse to be held responsible for your disappointment that your 
> ability to sniff out even the slightest indication of bigotry through 
> orthography on usenet hasn't got you some kind of reward. 

You're losing it if you believe I'm prowling through messages to find something to be offended about, and that somehow you are depriving me of a reward. The only thing you are diminishing with this type of behavior is your character. 

Good day.

[toc] | [prev] | [next] | [standalone]


#58451

FromJulian Fondren <julian.fondren@gmail.com>
Date2017-05-01 14:07 -0700
Message-ID<a127b336-a334-4b84-a4a6-60c123f82f04@googlegroups.com>
In reply to#58450
On Monday, May 1, 2017 at 3:56:58 PM UTC-5, krishna...@ccreweb.org wrote:
> You're losing it if you believe I'm prowling through messages to find something to be offended about, and that somehow you are depriving me of a reward. The only thing you are diminishing with this type of behavior is your character. 
> 
> Good day.

You've never encountered genuine anti-Indian sentiment, don't know
what it looks like, and as a result have picked a petty fight with
someone probably completely innocent of such sentiment over what you
perceive to be an absurdly out of date 1950s characterization of
Indian speech -- that wasn't malicious even in the 1950s.

This is a predictable result of poor education in hate-trends.
Watching it unfold makes me a little more sympathetic to newspapers
that freak out about cartoon frogs and benign hand signs; at least
they're *trying* to keep up :-)

[toc] | [prev] | [next] | [standalone]


#58455

FromAlex <alex@rivadpm.com>
Date2017-05-01 23:17 +0100
Message-ID<oe8bvo$v2l$1@dont-email.me>
In reply to#58451
On 5/1/2017 22:07, Julian Fondren wrote:
> On Monday, May 1, 2017 at 3:56:58 PM UTC-5, krishna...@ccreweb.org wrote:
>> You're losing it if you believe I'm prowling through messages to find something to be offended about, and that somehow you are depriving me of a reward. The only thing you are diminishing with this type of behavior is your character.
>>
>> Good day.
> 
> You've never encountered genuine anti-Indian sentiment, don't know
> what it looks like, and as a result have picked a petty fight with
> someone probably completely innocent of such sentiment over what you
> perceive to be an absurdly out of date 1950s characterization of
> Indian speech -- that wasn't malicious even in the 1950s.

Google tells me "likee" is "attributed to various forms of pidgin 
English, most prominently from Chinese Pidgin English" or as an 
alternative spelling of "likey" as "(humorous) alternative form of like" 
(both Wiktionary).

"No siree" is American in origin, and appears to be pretty neutral from 
what I can see. So it must be "likee" (Chinese version) that got his 
gander up.

Absurd.

> 
> This is a predictable result of poor education in hate-trends.

No, it's the predictable result of being a virtue signalling snowflake 
on usenet.

-- 
Alex

[toc] | [prev] | [next] | [standalone]


#58452

FromAlex <alex@rivadpm.com>
Date2017-05-01 22:33 +0100
Message-ID<oe89da$khc$1@dont-email.me>
In reply to#58450
On 5/1/2017 21:56, krishna.myneni@ccreweb.org wrote:
> You're losing it if you believe I'm prowling through messages to
> find something to be offended about, and that somehow you are
> depriving me of a reward. The only thing you are diminishing with
> this type of behavior is your character.

I suspect it's not me you've been addressing in this extended tut tut 
sequence of posts; where you have failed to even explain the bigotry 
that has so upset you. It's a wider audience to whom you are virtue 
signalling -- see, here we have the unrepentant bigot. Gaze on him, and 
feel sad -- truly sad -- that he fails to apologize! How his character 
is diminished by his behaviour!

Well, fuck you and the horse you rode in on.

Have a nice day.

-- 
Alex

[toc] | [prev] | [next] | [standalone]


Page 1 of 8  [1] 2 3 4 5 6 7 8  Next page →

Back to top | Article view | comp.lang.forth


csiph-web