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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c75184ead441c57e X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr" Subject: Re: lex equivalent in Ada95 ? Date: 1998/09/07 Message-ID: #1/1 X-Deja-AN: 388789470 References: <35F3C115.ECE@ipnsun5.in2p3.fr> <35F41777.25F0E30F@cl.cam.ac.uk> Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Date: 1998-09-07T00:00:00+00:00 List-Id: Markus Kuhn wrote in message <35F41777.25F0E30F@cl.cam.ac.uk>... >grave wrote: >> Is there somewhere an Ada equivalent to lex ? >> A software which produce Ada 95 code instead of C core ? > >>From : > > Wolfgang Lohman has ported Ayacc and Aflex, the Ada versions of > the well known scanner and parser generators, to run with gnatmake: > > http://www.informatik.uni-rostock.de/~wlohmann/Ada/ Unfortunately, this "port" (which the author himself says is not really a port), is not as good ad the following set of files directly from the Arcadia Project at ftp://liege.ics.uci.edu/pub/irus/software_releases The files you want to get are: 04/21/94 12:00a 605,896 aflex-ayacc_1.4a.tar.Z 04/22/94 12:00a 184,272 aflex-ayacc_1.4a_ps_docs.tar.Z 09/22/95 12:00a 41,827 aflex_gnat_beta.tar.Z 09/28/95 12:00a 41,295 ayacc_gnat_beta.tar.Z 07/07/98 09:43p 4,154 README.aflex-ayacc Assuming you are using GNAT, here are some installation instructions: When you unpack the 605,896 aflex-ayacc_1.4a.tar.Z, you will have VADS-compatible source code (files have .a extension) in the two src directories. You need to gnatchop these files (then delete the original .a files). Then you can unpack the two gnat_beta archives, and copy the .ad[bs] files into the corresponding src directories, overwriting the gnatchopped versions of these files. Finally, in the corresponding src directories do gnatmake aflex and gnatmake ayacc The doc directories in the distribution contain .tex documentation, but the ps_docs archive I listed above has the documentation in Post Script form.