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,38d9bc3cc55bcedb X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Ada95 Ayacc / Aflex specifications Date: 1999/09/07 Message-ID: <7r3grg$q2m$1@nnrp1.deja.com>#1/1 X-Deja-AN: 522143306 References: <7r0gob$m31$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue Sep 07 17:09:13 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-09-07T00:00:00+00:00 List-Id: In article <7r0gob$m31$1@nnrp1.deja.com>, mark_doherty@my-deja.com wrote: > I am looking for the source specifications for ayacc / aflex for Ada95. > > I want these so that I can extract the ayacc / aflex specification > associated with a calculator (i.e expression. basics functions of +, > -,*, /, () , power, unarray + and - for both integer and floating point > arithmatic). > > An example of a calculator would be great. Hmmm. This sounds suspiciously like a homework assignment.... I believe ayacc and aflex are written to accept yacc and lex source files. That would mean what you are looking for has nothing to do with ayacc and aflex themselves (and nothing to do with Ada, for that matter). If you have a copy of the "Dragon Book", I'd be suprised if it didn't have something very much like what you are asking for. I know there are calculator examples in the O'Reilly "nutshell" lex & yacc book. But if this is for a homework assignment, I highly suggest you follow the exercise as intended rather than blindly copy source files someone else wrote. It'd be a shame to spend all that money and time on the course and not learn anything. -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.