From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,19b6efa2ecebaed0 X-Google-Attributes: gid103376,public From: "John G. Volan" Subject: Re: Ada95 Pretty-Printers Date: 1997/06/11 Message-ID: <339F33EA.227@sprintmail.com>#1/1 X-Deja-AN: 247756219 References: <339C58A6.4D5A@sprintmail.com> Reply-To: johnvolan@sprintmail.com Newsgroups: comp.lang.ada Date: 1997-06-11T00:00:00+00:00 List-Id: Thanks to everyone who suggested running emacs in batch mode. We've got it doing case adjustment and indentation for us now, and we've been able to hook it into Apex in place of its pretty-printer. So what if it doesn't do reformatting -- what self-respecting engineer would want a tool to decide where to put the line-breaks anyway? :-) The only downside is that it's pretty slow. The indentation algorithm is tailored for interactive editing: It's great at indenting the line you're currently editing, and you don't notice the time it spends backtracking to see what the indentation level should be. But when it's doing all that backtracking repeatedly on every line in a batch traversal through a file, that's pretty wasteful. We're debating whether to mangle up a new lisp script to do a one-pass indenting traversal, but the original ada-mode source is a bit confusing -- it's hard to tell what can be ripped out. It might be more worthwhile for us to look at using ASIS/GNAT as the basis of a pretty printer. That way we could actually get active reformatting -- but the way _we_ want it. For the curious, ASIS/GNAT can be found at: http://www.acm.org/sigada/WG/asiswg/ASIS_GNAT_9705.html ------------------------------------------------------------------------ Internet.Usenet.Put_Signature (Name => "John G. Volan", Employer => "Texas Instruments Advanced C3I Systems, San Jose, CA", Work_Email => "johnv@ti.com", Home_Email => "johnvolan@sprintmail.com", Slogan => "Ada95: World's *FIRST* International-Standard OOPL", Disclaimer => "My employer never defined these opinions, so using " & "them would be totally erroneous...or is that just " & "nondeterministic behavior now? :-) "); ------------------------------------------------------------------------