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


Groups > comp.compilers > #3397

Re: syntax complexity

Path csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From Nils M Holm <nmh@t3x.org>
Newsgroups comp.compilers
Subject Re: syntax complexity
Date Tue, 21 Feb 2023 21:26:00 +0100
Organization TARFU
Sender johnl@iecc.com
Approved comp.compilers@iecc.com
Message-ID <23-02-058@comp.compilers> (permalink)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Injection-Info gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="36949"; mail-complaints-to="abuse@iecc.com"
Keywords history, syntax
Posted-Date 21 Feb 2023 16:19:28 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:3397

Show key headers only | View raw


Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
> Of course, better than either solution is to design the language to
> require that an IF-statement is terminated with, e.g., fi (Algol 68) or END
> (Modula-2).

Or you can have two different statement types for IF with and
without an alternative branch. For example, BCPL has

IF expression THEN statement

and

TEST expression THEN statement ELSE statement

--
Nils M Holm  < n m h @ t 3 x . o r g >  http://t3x.org

Back to comp.compilers | Previous | Next | Find similar


Thread

Re: syntax complexity Nils M Holm <nmh@t3x.org> - 2023-02-21 21:26 +0100

csiph-web