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: Ted Dennison Subject: Re: Ayacc/Aflex "entropy" (P2Ada) Date: 1999/10/25 Message-ID: <7v2470$ead$1@nnrp1.deja.com>#1/1 X-Deja-AN: 540378946 References: <3813716C.52655126@Maths.UniNe.CH> X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Oct 25 17:32:16 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-10-25T00:00:00+00:00 List-Id: In article <3813716C.52655126@Maths.UniNe.CH>, Gautier wrote: > to extend P2Ada for the Borland-ish Pascal language > "nebula" increases the "Reduce/Reduce conflicts" > (what does it mean? nothing good surely...) > and can confuse the translator in unexpected way. > > - Is there a strategy to avoid it (I'm completely > amateur in ayacc) ? You ought to consider getting a good yacc book. I use the O'Reilly Lex/Yacc nutshell book, and it seems quite good. It has a whole chapter on Yacc conflicts that you might find most helpful. (Reduce/Reduce roughly means a series of tokens matches 2 rules and it can't decide which to use). > - Should one "migrate" to a replacement of ayacc ? > > - If so, is there an automatic way to translate > Pascal.Y ?... Within a couple of months I hope to get OpenToken ( http://www.telepath.com/dennison/Ted/OpenToken/OpenToken.html ) to a point where it would be a useful alternative for such projects. As it stands now, you'd have to do you own parsing, though. -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.