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


Groups > comp.compilers > #3397

Re: syntax complexity

From Nils M Holm <nmh@t3x.org>
Newsgroups comp.compilers
Subject Re: syntax complexity
Date 2023-02-21 21:26 +0100
Organization TARFU
Message-ID <23-02-058@comp.compilers> (permalink)

Show all headers | 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