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


Groups > comp.lang.forth > #10813

Re: Is there a word to compile a sequence of words which follows into another word?

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Is there a word to compile a sequence of words which follows into another word?
Date 2012-04-03 12:03 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2012Apr3.140318@mips.complang.tuwien.ac.at> (permalink)
References (1 earlier) <Tpydndp60MQIr-XSnZ2dnUVZ_jKdnZ2d@supernews.com> <jlbfnt$9su$1@speranza.aioe.org> <3ce0d696-6c2c-4d17-ba6b-f76d66b02260@fw28g2000vbb.googlegroups.com> <4548a85f-6c8d-45c0-aff6-2ecdbd3cdd23@l7g2000vbw.googlegroups.com> <jlejrd$4q0$1@speranza.aioe.org>

Show all headers | View raw


"Rod Pemberton" <do_not_have@notemailnot.cmm> writes:
>But, this compiles three OKs:
>
>  ] OK OK OK [
>
>Is that normal or standard operation?  It works for my interpreter ...

It's standard if there is a colon definition that has been started and
not yet ended, i.e., if you have

: foo

somewhere earlier (possibly with a "[").

>So, what I was saying about extending ] and [ would be to allow
>immediate words to be compiled also:
>
>  ] OKI OKI OKI [  ( 3 OKs POSTPONED or [COMPILED] )
>
>Does that make more sense?

Somewhat.  You were asking for a shorthands for the POSTPONEs, so you
would also want that to be equivalent to

postpone OKI postpone OKI postpone OKI

if OKI is not immediate.  And that's the idea behind ]] ... [[.

]] ... [[ is not called ] ... [ because the standard ] has the
compilation semantics of compiling ], so it must not do what ]]
does.

- 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 2011: http://www.euroforth.org/ef11/

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


Thread

Is there a word to compile a sequence of words which follows into another word? "Rod Pemberton" <do_not_have@noavailemail.cmm> - 2012-03-31 21:57 -0400
  Re: Is there a word to compile a sequence of words which follows into another word? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-01 05:48 -0500
    Re: Is there a word to compile a sequence of words which follows into another word? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-02 02:07 -0400
      Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-02 09:29 -0700
        Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-02 09:38 -0700
        Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-02 09:40 -0700
          Re: Is there a word to compile a sequence of words which follows into another word? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-02 11:38 -1000
            Re: Is there a word to compile a sequence of words which follows into another word? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-03 10:31 +0000
              Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-03 05:31 -0700
              Re: Is there a word to compile a sequence of words which follows into another word? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-03 08:31 -1000
          Re: Is there a word to compile a sequence of words which follows into another word? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-03 06:36 -0400
            Re: Is there a word to compile a sequence of words which follows into another word? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-03 12:03 +0000
            Re: Is there a word to compile a sequence of words which follows into another word? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-04 04:58 -0400
        Re: Is there a word to compile a sequence of words which follows into another word? "A. K." <akk@nospam.org> - 2012-04-02 23:31 +0200
  Re: Is there a word to compile a sequence of words which follows into another word? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-02 11:04 +0000
  Re: Is there a word to compile a sequence of words which follows into another word? BruceMcF <agila61@netscape.net> - 2012-03-31 19:30 -0700
  Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-02 08:39 -0700
    Re: Is there a word to compile a sequence of words which follows into another word? Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-04-05 23:55 -0700
  Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-03 01:02 -0700
    Re: Is there a word to compile a sequence of words which follows into  another word? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-03 12:58 +0000
  Re: Is there a word to compile a sequence of words which follows into another word? Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-04-03 03:00 -0700

csiph-web