Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #1430
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.misty.com!news.iecc.com!.POSTED!nerds-end |
|---|---|
| From | "Gerry Rzeppa" <gerry.rzeppa@pobox.com> |
| Newsgroups | comp.compilers |
| Subject | Re: language design models, was Writing A Plain English Compiler |
| Date | Mon, 10 Nov 2014 03:29:43 -0600 |
| Organization | Compilers Central |
| Lines | 38 |
| Sender | news@iecc.com |
| Approved | comp.compilers@iecc.com |
| Message-ID | <14-11-022@comp.compilers> (permalink) |
| References | <14-11-004@comp.compilers> <14-11-005@comp.compilers> <14-11-012@comp.compilers> <14-11-018@comp.compilers> <14-11-021@comp.compilers> |
| NNTP-Posting-Host | news.iecc.com |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="iso-8859-1"; reply-type=original |
| Content-Transfer-Encoding | 8bit |
| X-Trace | miucha.iecc.com 1415653132 46193 2001:470:1f07:1126:0:676f:7373:6970 (10 Nov 2014 20:58:52 GMT) |
| X-Complaints-To | abuse@iecc.com |
| NNTP-Posting-Date | Mon, 10 Nov 2014 20:58:52 +0000 (UTC) |
| Keywords | syntax, design |
| Posted-Date | 10 Nov 2014 15:58:52 EST |
| X-submission-address | compilers@iecc.com |
| X-moderator-address | compilers-request@iecc.com |
| X-FAQ-and-archives | http://compilers.iecc.com |
| Xref | csiph.com comp.compilers:1430 |
Show key headers only | View raw
George says, English in particular has slippery pronouns: the "royal" "we" is singular; "you", "they" and "it" all may be singular or plural depending on context. [The plural use of "it" is rare in polite conversation, but is relatively common in exasperation and vulgarity: e.g., "Screw it!" may be a multiple reference.] Gerry replies: Which is one of the reasons we adopted the "language design model" that we did. We knew that experts in linguistics understood such subtleties; but we also knew that most of the people who speak English don't -- and yet they somehow get by. So, instead of trying to "understand" imperative sentences, we simply attempt to MATCH them with routines defined elsewhere -- because this appears to be what happens in many cases when we ask questions of, or give commands to, our wives, our children, and even our dogs. Say, "Want a treat little buddy?" and a baby (or a dog) may hear only "blah, blah, TREAT, blah, blah" -- but will nevertheless respond appropriately. Why? Because the word "treat" is associated with some kind of previously-recorded mental picture or concept. Say, "Where has that mother of yours gone?" and the subject may only hear, "WHERE blah blah MOTHER blah blah blah" -- but will again respond appropriately, because a "where" routine with a "mother"-compatible parameter has been previously defined and can be called and executed. Our compiler takes the same approach: we let the programmer define his own routine headers -- using his own vocabulary, spelling, good or bad grammar, etc -- and then we select the "best match" for his imperative sentences from those. Now one might think that such a sloppy approach would result in an difficult and unpredictable system: but the fact of the matter (and we speak from actual experience here) is that it results in a system that is both convenient and reliable.
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Writing A Plain English Compiler "Gerry Rzeppa" <gerry.rzeppa@pobox.com> - 2014-11-04 15:50 -0600
Re: Writing A Plain English Compiler Joshua Cranmer 🐧 <Pidgeot18@verizon.net> - 2014-11-05 00:54 -0600
Re: Writing A Plain English Compiler "Gerry Rzeppa" <gerry.rzeppa@pobox.com> - 2014-11-06 18:52 -0600
Re: Writing A Plain English Compiler Joshua Cranmer 🐧 <Pidgeot18@verizon.net> - 2014-11-07 22:54 -0600
Re: Writing A Plain English Compiler "Gerry Rzeppa" <gerry.rzeppa@pobox.com> - 2014-11-08 02:41 -0600
Re: Writing A Plain English Compiler "Gerry Rzeppa" <gerry.rzeppa@pobox.com> - 2014-11-08 03:46 -0600
Re: Writing A Plain English Compiler "BartC" <bc@freeuk.com> - 2014-11-09 01:16 +0000
Re: Writing A Plain English Compiler "Gerry Rzeppa" <gerry.rzeppa@pobox.com> - 2014-11-10 14:37 -0600
Re: self-hosting, was Writing A Plain English Compiler Richard Hable <portempa@aon.at> - 2014-11-11 19:50 +0100
Re: self-hosting, was Writing A Plain English Compiler "BartC" <bc@freeuk.com> - 2014-11-11 23:33 +0000
Re: self-hosting, was Writing A Plain English Compiler anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-11-12 08:46 +0000
Re: self-hosting, was Writing A Plain English Compiler "BartC" <bc@freeuk.com> - 2014-11-12 11:15 +0000
Re: self-hosting, was Writing A Plain English Compiler anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-11-12 08:40 +0000
Re: Writing A Plain English Compiler "BartC" <bcas@freeuk.com> - 2014-11-07 11:36 +0000
Re: Writing A Plain English Compiler George Neuner <gneuner2@comcast.net> - 2014-11-07 16:23 -0500
Re: Writing A Plain English Compiler Richard Hable <portempa@aon.at> - 2014-11-08 17:22 +0100
Re: Writing A Plain English Compiler Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-11-08 10:48 -0600
Re: language design models, was Writing A Plain English Compiler George Neuner <gneuner2@comcast.net> - 2014-11-09 14:30 -0500
Re: language design models, was Writing A Plain English Compiler "Gerry Rzeppa" <gerry.rzeppa@pobox.com> - 2014-11-10 03:29 -0600
Re: Writing A Plain English Compiler Tomasz Kowaltowski <tk@ic.unicamp.br> - 2014-11-10 09:13 -0200
Re: Writing A Plain English Compiler "Gerry Rzeppa" <gerry.rzeppa@pobox.com> - 2014-11-10 17:19 -0600
Re: matching tasks to languages, was Writing A Plain English Compiler Gene Wirchenko <genew@telus.net> - 2014-11-10 15:37 -0800
Re: Writing A Plain English Compiler Martin Ward <martin@gkc.org.uk> - 2014-11-10 22:56 +0000
Re: Writing A Plain English Compiler "BartC" <bcas@freeuk.com> - 2014-11-07 11:39 +0000
Re: Writing A Plain English Compiler "BartC" <bc@freeuk.com> - 2014-11-08 00:35 +0000
Fundamentals for a Compiler and Language (was: Writing A Plain English Compiler) federation2005@netzero.com - 2014-12-29 13:30 -0800
csiph-web