Xref: utzoo comp.lang.pascal:784 comp.bugs.misc:108 Path: utzoo!mnetor!uunet!mcvax!ukc!eagle!icdoc!doc.ic.ac.uk!iwm From: iwm@doc.ic.ac.uk (Ian Moor) Newsgroups: comp.lang.pascal,comp.bugs.misc Subject: pxp and null Message-ID: <252@gould.doc.ic.ac.uk> Date: 8 Apr 88 19:33:29 GMT Sender: news@doc.ic.ac.uk Reply-To: iwm@doc.ic.ac.uk (Ian Moor) Organization: Dept. of Computing, Imperial College, London, UK. Lines: 20 The pxp BSD Pascal prettyprinter inserts the word `null' in places where a null statement is legal : if B then P else; becomes if B then P else null;. Null is not a legal Pascal statement and causes non BSD Pascal processing tools to complain, (eg. ptc : Pascal to C converter). As pxp has an {\HUGE FLAME undocumented} switch -O for removing `others' in case statements it is used in compiling TeX -- and the Tangle preprocessor generates statements with null cases that get mangled as described above. Ian W Moor UUCP: seismo!mcvax!ukc!icdoc!iwm ARPA: iwm@doc.ic.ac.uk JANET: iwm@uk.ac.ic.doc Department of Computing Whereat a great and far-off voice was heard, saying, Imperial College. Poop-poop-poopy, and it was even so; and the days 180 Queensgate of Poopy Panda were long in the land. London SW7 Uk.