Re: Writing A Plain English Compiler

"BartC" <bcas@freeuk.com>
Fri, 7 Nov 2014 11:36:24 -0000

          From comp.compilers

Related articles
Writing A Plain English Compiler gerry.rzeppa@pobox.com (Gerry Rzeppa) (2014-11-04)
Re: Writing A Plain English Compiler Pidgeot18@verizon.net (=?UTF-8?Q?Joshua_Cranmer_=f0=9f=90=a7?=) (2014-11-05)
Re: Writing A Plain English Compiler gerry.rzeppa@pobox.com (Gerry Rzeppa) (2014-11-06)
Re: Writing A Plain English Compiler bcas@freeuk.com (BartC) (2014-11-07)
Re: Writing A Plain English Compiler bcas@freeuk.com (BartC) (2014-11-07)
Re: Writing A Plain English Compiler gneuner2@comcast.net (George Neuner) (2014-11-07)
Re: Writing A Plain English Compiler bc@freeuk.com (BartC) (2014-11-08)
Re: Writing A Plain English Compiler Pidgeot18@verizon.net (=?UTF-8?Q?Joshua_Cranmer_=f0=9f=90=a7?=) (2014-11-07)
Re: Writing A Plain English Compiler gerry.rzeppa@pobox.com (Gerry Rzeppa) (2014-11-08)
Re: Writing A Plain English Compiler gerry.rzeppa@pobox.com (Gerry Rzeppa) (2014-11-08)
Re: Writing A Plain English Compiler portempa@aon.at (Richard Hable) (2014-11-08)
[6 later articles]
| List of all articles for this month |
From: "BartC" <bcas@freeuk.com>
Newsgroups: comp.compilers
Date: Fri, 7 Nov 2014 11:36:24 -0000
Organization: virginmedia.com
References: 14-11-004 14-11-005
Keywords: syntax, design
Posted-Date: 07 Nov 2014 13:22:58 EST

"Joshua Cranmer p'" <Pidgeot18@verizon.net> wrote in message
> On 11/4/2014 3:50 PM, Gerry Rzeppa wrote:


> The syntax seems to be what you are most proud of, but I rather suspect
> that most of the people in this group don't care too much about
> syntax.


Actually, some of us are fussy about syntax, but while we might prefer
something less terse than C++, it's not necessary to go as far as something
that can be mistaken for English.


About a year ago, I had an experimental project where I could write code in
my own preferred syntax, and it would translate it to one of a number of
well-known languages.


It worked up to a point (I wrote some small benchmarks that were translated
to C, Python, Lua, Lisp and one or two others. In some simple cases, exactly
the same code would work unchanged on a number of different targets). But
you still had to be aware of the different capabilities of each target. In
the end, I preferred to create a proper language of my own (two in fact).


It shows however that syntax is not that important. Well, provided it's not
totally crazy, and that some agreement is reached as to what is allowed
(otherwise no one can understand anyone else's code).


Technically, it wouldn't be a problem to allow a small number of different
styles (eg. C, Algol, Python, Lisp, maybe even Plain English) and use that
style across all languages instead of needing to switch.


--
Bartc


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.