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=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1be1b347b5b5ad43 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ayacc/Aflex "entropy" (P2Ada) Date: 1999/10/27 Message-ID: <7v5ns8$2h1$1@nnrp1.deja.com>#1/1 X-Deja-AN: 540980534 References: <3813716C.52655126@Maths.UniNe.CH> <7v2400$e02$1@nnrp1.deja.com> <7v30jd$3i6$1@nnrp1.deja.com> <7v3u0f$nn6$1@nnrp1.deja.com> <3816331A.99C596D2@mitre.org> X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Oct 27 02:26:18 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-10-27T00:00:00+00:00 List-Id: In article <3816331A.99C596D2@mitre.org>, "Robert I. Eachus" wrote: > One alternative would be to use a parser generator which uses > Early's algorithm. Early's algorithm will cheerfully accept any LR(k) > grammar, and parse it quite fast, but it can also accept and recognize > ambiguous grammars, but the performance degrades to O(n**3). I think the parsing algorithm is less of an issue than error recovery, the error recovery of YACC is pathetic. It is surprising what can be done with automatic generators in this area. See some of the papers from Fisher and Charles from the early days of the NYU Ada/Ed project. Many commercial Ada/83 compilers made use of this work, and the syntactic error recovery of Ada/Ed was really quite good (not as good as GNAT, but GNAT has a lot of careful hand coded heuristic stuff that I doubt any automatic system could fully match). Robert Dewar Sent via Deja.com http://www.deja.com/ Before you buy.