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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9e9f299a881137c6 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!q5g2000prf.googlegroups.com!not-for-mail From: parthaspanda22@gmail.com Newsgroups: comp.lang.ada Subject: Re: ASIS? Date: Fri, 26 Oct 2007 05:10:51 -0700 Organization: http://groups.google.com Message-ID: <1193400651.105865.109310@q5g2000prf.googlegroups.com> References: <1193392044.600378.120160@i13g2000prf.googlegroups.com> <877ilafaqw.fsf@ludovic-brenta.org> <1193399880.704212.257150@e9g2000prf.googlegroups.com> NNTP-Posting-Host: 122.50.192.237 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1193400651 17664 127.0.0.1 (26 Oct 2007 12:10:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 26 Oct 2007 12:10:51 +0000 (UTC) In-Reply-To: <1193399880.704212.257150@e9g2000prf.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q5g2000prf.googlegroups.com; posting-host=122.50.192.237; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2577 Date: 2007-10-26T05:10:51-07:00 List-Id: On Oct 26, 4:58 pm, parthaspand...@gmail.com wrote: > > 2) The ASIS interface can only be provided on legal, compiling program > > text. Any program with compile-time errors in it would be > > impossible to browse (using the source browser) and the editor > > would have to be particularly smart in deciding when to call the > > compiler to regerenate the ASIS information. > > There is a solution to this: > > 1) If a file compiles successfully, then use ASIS. > 2) If a file compiles with errors then first use ASIS and then do > grep. > I will elaborate on this a little more. If, for instance, a source browser wants to get to the definition of a symbol, then it doesnt matter that there was a compilation error. The first (erroneous) definition site would be emitted as an ASIS record. However, if the type of an object is required to be navigated to, then, we need compilation artefacts(an ASIS binding to an AST or some IL).