Article View: net.lang.pascal
Article #17empty then clauses in Berkeley Pascal
From: utzoodecvaxucbvaxpeter
Date: Sat, 12 Feb 1983 21:26
Date: Sat, 12 Feb 1983 21:26
15 lines
1211 bytes
1211 bytes
The reason the Berkeley Pascal compiler and interpreter don't handle
if <condition> then else <statement>
correctly is because the parser generator we were using had a bug in it
having to do with look ahead sets across non-terminals that could derive
the empty string (one of which is <statement>). We've fixed the parser
generator and now we don't have this problem.
The funny part is that in the 6+ years this parser generator has been
broken the null-then-clause is the only example of it that anyone ever
complained about, though after we found the bug, we discovered there
were maybe 7 or 8 other places where this caused problems (details left
to the reader).
You should all hurry up and order your 4.1c bsd tapes which have the
latest Pascal system on it. In the meantime, inserting ``begin end''
will get around the problem.
... peter b. kessler
Technical Details
Message-ID:
<bnews.ucbvax.871>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!ucbvax!peter Newsgroups: net.lang.pascal Title: empty then clauses in Berkeley Pascal Article-I.D.: ucbvax.871 Posted: Sat Feb 12 21:26:12 1983 Received: Tue Feb 15 04:42:44 1983 Subject: empty then clauses in Berkeley Pascal Date: Sat, 12 Feb 1983 21:26:12 +0000 Message-ID: <bnews.ucbvax.871>