Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #58923
| From | "HAA" <someone@microsoft.com> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: "Recognizing" a parser generator (and a compiler compiler) |
| Date | 2017-05-10 15:27 +1000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <oeu8d4$arp$1@gioia.aioe.org> (permalink) |
| References | <eff0f55b-1e34-4a60-ba88-5bb0866c496b@googlegroups.com><oepapj$k1q$1@dont-email.me><d743e777-3e6d-4512-8aab-bc3ac0c541be@googlegroups.com><oerolq$5jd$1@dont-email.me> <h-qdnd58EbSt74zEnZ2dnUU7-IPNnZ2d@supernews.com> |
Elizabeth D. Rather wrote: > On 5/8/17 8:50 PM, Alex wrote: > > On 5/9/2017 05:07, Joel Rees wrote: > >> > >>>> I have <BUILDS, I mean, CREATE DOES> > >>>> > >>>> (Which I was struggling with over the weekend, but that's > >>>> another story not worth posting about.) > >>>> > >>>> Each word in Forth defines its own syntax. Each word in Forth has > >>>> its own attached semantics. > >>> > >>> That's not strictly true. Words like IF pass semantic clues to > >>> their corresponding ELSE THEN on the stack. > >> > >> No, it is true. ELSE and THEN are syntactically and semantically > >> parts of IF. You haven't properly parsed your IF until you've parsed > >> the optional ELSE and the trailing THEN. > > > > We're going to have to disagree. They have compile-time semantics that > > are different from their run-time semantics for one. > > Joel, the thing you have to realize here is that there is *zero* > "syntactic" connection between IF, ELSE, and THEN. Each is interpreted > in turn and does whatever it's defined to do. That is, IS compiles > something followed by a reserved cell usually containing zero, and > leaves that address on the stack. This location will normally be filled > in subsequently by either ELSE or THEN, but each of those words is > completely independent and has no real syntactic connection. > ... ANS defines syntax through the use of 'orig', 'dest', 'of-sys' etc whose sole purpose is to restrict what you may mix & match legally, if not practically.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
"Recognizing" a parser generator (and a compiler compiler) Joel Rees <joel.rees@gmail.com> - 2017-05-07 19:29 -0700
Re: "Recognizing" a parser generator (and a compiler compiler) hughaguilar96@gmail.com - 2017-05-07 21:57 -0700
Re: "Recognizing" a parser generator (and a compiler compiler) Alex <alex@rivadpm.com> - 2017-05-08 09:55 +0100
Re: "Recognizing" a parser generator (and a compiler compiler) Alex <alex@rivadpm.com> - 2017-05-08 09:41 +0100
Re: "Recognizing" a parser generator (and a compiler compiler) Joel Rees <joel.rees@gmail.com> - 2017-05-08 21:07 -0700
Re: "Recognizing" a parser generator (and a compiler compiler) Alex <alex@rivadpm.com> - 2017-05-09 07:50 +0100
Re: "Recognizing" a parser generator (and a compiler compiler) "Elizabeth D. Rather" <erather@forth.com> - 2017-05-08 21:39 -1000
Re: "Recognizing" a parser generator (and a compiler compiler) "HAA" <someone@microsoft.com> - 2017-05-10 15:27 +1000
Re: "Recognizing" a parser generator (and a compiler compiler) Alex <alex@rivadpm.com> - 2017-05-10 08:21 +0100
Re: "Recognizing" a parser generator (and a compiler compiler) "HAA" <someone@microsoft.com> - 2017-05-10 18:15 +1000
Re: "Recognizing" a parser generator (and a compiler compiler) Joel Rees <joel.rees@gmail.com> - 2017-05-10 00:53 -0700
Re: "Recognizing" a parser generator (and a compiler compiler) Alex <alex@rivadpm.com> - 2017-05-10 08:59 +0100
Re: "Recognizing" a parser generator (and a compiler compiler) mhx@iae.nl - 2017-05-10 02:52 -0700
Re: "Recognizing" a parser generator (and a compiler compiler) albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-05-10 11:59 +0200
Re: "Recognizing" a parser generator (and a compiler compiler) Joel Rees <joel.rees@gmail.com> - 2017-05-10 05:46 -0700
Re: "Recognizing" a parser generator (and a compiler compiler) mhx@iae.nl - 2017-05-10 05:48 -0700
csiph-web