comp.lang.ada
 help / color / mirror / Atom feed
* lex equivalent in Ada95 ?
@ 1998-09-07  0:00 grave
  1998-09-07  0:00 ` Markus Kuhn
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: grave @ 1998-09-07  0:00 UTC (permalink / raw)


Hi all,

Is there somewhere an Ada equivalent to lex ?
A software which produce Ada 95 code instead of C core ?

Thanks in advance,

xavier




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lex equivalent in Ada95 ?
  1998-09-07  0:00 lex equivalent in Ada95 ? grave
  1998-09-07  0:00 ` Markus Kuhn
@ 1998-09-07  0:00 ` David C. Hoos, Sr
  1998-09-08  0:00 ` Pascal Obry
  2 siblings, 0 replies; 5+ messages in thread
From: David C. Hoos, Sr @ 1998-09-07  0:00 UTC (permalink / raw)



grave wrote in message <35F3C115.ECE@ipnsun5.in2p3.fr>...
>Hi all,
>
>Is there somewhere an Ada equivalent to lex

The Arcadia Project aflex and ayacc source code is available 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.

Hope this helps.

David C. Hoos, Sr.









^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lex equivalent in Ada95 ?
  1998-09-07  0:00 lex equivalent in Ada95 ? grave
@ 1998-09-07  0:00 ` Markus Kuhn
  1998-09-07  0:00   ` David C. Hoos, Sr
  1998-09-07  0:00 ` David C. Hoos, Sr
  1998-09-08  0:00 ` Pascal Obry
  2 siblings, 1 reply; 5+ messages in thread
From: Markus Kuhn @ 1998-09-07  0:00 UTC (permalink / raw)


grave wrote:
> Is there somewhere an Ada equivalent to lex ?
> A software which produce Ada 95 code instead of C core ?

From <http://www.cl.cam.ac.uk/~mgk25/ada.html>:

  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/

Markus

-- 
Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK
email: mkuhn at acm.org,  home page: <http://www.cl.cam.ac.uk/~mgk25/>




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lex equivalent in Ada95 ?
  1998-09-07  0:00 ` Markus Kuhn
@ 1998-09-07  0:00   ` David C. Hoos, Sr
  0 siblings, 0 replies; 5+ messages in thread
From: David C. Hoos, Sr @ 1998-09-07  0:00 UTC (permalink / raw)



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 <http://www.cl.cam.ac.uk/~mgk25/ada.html>:
>
>  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.







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lex equivalent in Ada95 ?
  1998-09-07  0:00 lex equivalent in Ada95 ? grave
  1998-09-07  0:00 ` Markus Kuhn
  1998-09-07  0:00 ` David C. Hoos, Sr
@ 1998-09-08  0:00 ` Pascal Obry
  2 siblings, 0 replies; 5+ messages in thread
From: Pascal Obry @ 1998-09-08  0:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]


grave a �crit dans le message <35F3C115.ECE@ipnsun5.in2p3.fr>...
>Hi all,
>
>Is there somewhere an Ada equivalent to lex ?
>A software which produce Ada 95 code instead of C core ?
>
>Thanks in advance,
>
>xavier

I have a aflex and ayacc port for GNAT available from my homepage.

Pascal.


--|------------------------------------------------------------
--| Pascal Obry                               Team-Ada Member |
--|                                                           |
--| EDF-DER-IPN-SID- Ing�nierie des Syst�mes d'Informations   |
--|                                                           |
--| Bureau G1-010           e-mail: pascal.obry@der.edfgdf.fr |
--| 1 Av G�n�ral de Gaulle  voice : +33-1-47.65.50.91         |
--| 92141 Clamart CEDEX     fax   : +33-1-47.65.50.07         |
--| FRANCE                                                    |
--|------------------------------------------------------------
--|
--|   http://ourworld.compuserve.com/homepages/pascal_obry
--|
--|   "The best way to travel is by means of imagination"







^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-09-08  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-07  0:00 lex equivalent in Ada95 ? grave
1998-09-07  0:00 ` Markus Kuhn
1998-09-07  0:00   ` David C. Hoos, Sr
1998-09-07  0:00 ` David C. Hoos, Sr
1998-09-08  0:00 ` Pascal Obry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox