comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: Improving P2Ada (2)
Date: 1999/08/27
Date: 1999-08-27T00:00:00+00:00	[thread overview]
Message-ID: <37C693E3.7F3529D8@maths.unine.ch> (raw)
In-Reply-To: 7q5vuc$u3i$1@scharff.fys.ku.dk

> It appears that I have managed to argue that the flag isn't
> necessary after all. ;-(

Nice he he he. Hum, I prefer to wait a while to see
others' opinions.
Provisorily for your tests you could replace at line 1016 of pascal.y

    | {pascalhelp.put_line("WHEN OTHERS=> Null; ");}   -- EMPTY

with:

    |  -- EMPTY

BTW the "null;" for empty statements is not avoided for the case
of an empty statement appearing in a sequence, like

if abc then begin
  x;
  y; { empty statement after y ! }
end;

(NB: the ';' is a separator in Pascal) so there will
be protests, too... A way reprogram that can be the rules

- a single statement is either empty (crac: issue "null;") or not;
- a statement-in-sequence is either empty (don't issue "null;" !) or not;
- a sequence is either empty (crac: issue "null;") or not;

... with the risk to confuse ayacc a bit more.

-- 
Gautier

--------
http://members.xoom.com/gdemont/




      parent reply	other threads:[~1999-08-27  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-19  0:00 Improving P2Ada Gautier
1999-08-19  0:00 ` Gautier
1999-08-26  0:00 ` Improving P2Ada (2) Gautier
     [not found]   ` <7q5cih$msg$1@scharff.fys.ku.dk>
1999-08-27  0:00     ` Gautier
     [not found]       ` <7q5vuc$u3i$1@scharff.fys.ku.dk>
1999-08-27  0:00         ` Gautier [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox