🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #5495

Re: Block Closure

#5495
From: Alex Colvin
Date: Wed, 20 Apr 1988 14:37
14 lines
827 bytes
An other way to do this block overture/closure is to use the production

	stmt -> stmt ; stmt

or its nearest equivalent in your favorite notation.
This just gives ";" a high precedence.
Then blocks have to be explicitly cut off, e.g.

	if A then if B then S1; S2
      = if A then (if B then S1; S2)
     /= if A then (if B then S1); S2

Or you could require all syntax to be fully bracketed, as is LISP.
Technical Details
Message-ID: <254@babbage.acc.virginia.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!umd5!uvaarpa!babbage!mac3n
References: <2853@enea.se> <2400014@otter.hple.hp.com> <918@rlgvax.UUCP> <5100@aw.sei.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!umd5!uvaarpa!babbage!mac3n
From: mac3n@babbage.acc.virginia.edu (Alex Colvin)
Newsgroups: comp.lang.misc
Subject: Re: Block Closure
Message-ID: <254@babbage.acc.virginia.edu>
Date: 20 Apr 88 14:37:02 GMT
References: <2853@enea.se> <2400014@otter.hple.hp.com> <918@rlgvax.UUCP> <5100@aw.sei.cmu.edu>
Organization: University of Virginia
Lines: 13