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


Groups > comp.compilers > #3397 > unrolled thread

Re: syntax complexity

Started byNils M Holm <nmh@t3x.org>
First post2023-02-21 21:26 +0100
Last post2023-02-21 21:26 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.compilers


Contents

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

#3397 — Re: syntax complexity

FromNils M Holm <nmh@t3x.org>
Date2023-02-21 21:26 +0100
SubjectRe: syntax complexity
Message-ID<23-02-058@comp.compilers>
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

[toc] | [standalone]


Back to top | Article view | comp.compilers


csiph-web