🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3487

Re: Multi-level break and elimination of GOTO

#3487
From: Andrew Dunbar
Date: Tue, 14 Nov 1995 01:02
27 lines
1354 bytes
Paul Long (plong@perf.com) wrote:
: Whoops, I remembered wrong! It's not simply that there is a conflict
: (specifically, a shift/reduce conflict), the problem is that, as
: Charles Fu indicated in another article, the grammar is ambiguous
: and no amount of lookahead will help. Expanding on what Charles
: wrote, this looks like a labeled do with an empty statement, right?
: 
:     do outer
:         ;
:     while (0);
: 
: Okay, but in the following form, it also looks like an unlabeled do
: with a statement that contains a single identifier.
: 
:     do
:         outer;
:     while (0);
: 
Yes I mistakenly suggested this form in a post a few moments ago.
This is the only unambiguous form:

	do
		;
	while outer (0);

Andrew Dunbar
GPSoftware
Technical Details
Message-ID: <488prq$bfb@news.mel.aone.net.au>
Path: arc1-ca.pugleaf.net!news.mel.aone.net.au!not-for-mail
References: <47s7l0$r18@news.mel.aone.net.au> <815950407snz@genesis.demon.co.uk> <480eio$2uf@news0.rain.rg.net> <481trh$cuj@news0.rain.rg.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mel.aone.net.au!not-for-mail
From: andrewd@agnus.livewire.com.au (Andrew Dunbar)
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: Multi-level break and elimination of GOTO
Followup-To: comp.std.c,comp.lang.c
Date: 14 Nov 1995 01:02:50 GMT
Organization: Livewire Communications
Message-ID: <488prq$bfb@news.mel.aone.net.au>
References: <47s7l0$r18@news.mel.aone.net.au> <815950407snz@genesis.demon.co.uk> <480eio$2uf@news0.rain.rg.net> <481trh$cuj@news0.rain.rg.net>
NNTP-Posting-Host: agnus.livewire.com.au
X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]