Package: ExpungeOpens Maintainer: Plass Date: December 28, 1984 4:04:18 pm PST DF file: ExpungeOpens.df Purpose: Command for expanding unnamed OPEN statements in Cedar programs, and prettyprinting them. Executive commands: ExpungeOpens BananaImpl will remove unnamed OPENs from BananaImpl.mesa and prettify the indentation. Bugs: Note that the bug list is the longest part of the documentation. This program is yaahcp (yet another ad-hoc Cedar parser) and does not understand all the nuances of the Cedar language. Therefore there is a chance that your program will not compile after ExpungeOpens is done with it. However, it should not not mangle it too badly, and a edit-compile pass or two should fix things up. If your program has no OPEN statements, nothing bad should happen. Your program must be compiled before running ExpungeOpens, since ExpungeOpens runs the UsingLister to generate some of its information. If the same name is obtained from multiple interfaces, the result might be wrong. ExpungeOpens sets the keep up to 6, so if it botches the job really badly, you can recover an old version. It goes through a WriteMesaPlain - process - TiogaMesa sequence, so any fancy Tioga formatting will be lost and replaced with the standard TiogaMesa fare. The prettyprinting includes adjusting the indentation, replacing BEGIN . . . END with { . . . }, and fiddling with line breaks near { and } a little. If this is not to your liking, try setting the globals useCurlys, adjustLineBreaks, and/or adjustIndentation with the interpreter. ΚΕ˜JšΟnœ˜Iunitš œ˜Kšœ"˜&Kšœ˜Kšœ[˜bšœ˜table0šΟl ΠltΟi ˜Idefaultšœ  œ#˜L——šœ˜L˜@Lšœ…˜…Lšœ‡˜‡L˜QLšœj˜jL˜šLšœΞ  œ œ  œ˜š—J˜—…—Ϋ