comp.lang.ada
 help / color / mirror / Atom feed
* Help building p2ada
@ 2012-12-22 23:04 Patrick
  2012-12-22 23:16 ` Gustaf Thorslund
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Patrick @ 2012-12-22 23:04 UTC (permalink / raw)


I would like to translate from pascal to ada.

I want to use p2ada. The latest release is aug 2010, doesn't seem that old...

It's here:
http://p2ada.sourceforge.net/


Here is the relevant build instruction:

" " "
How to make P2Ada translator work ?
===================================

You need an Ada compiler to build P2Ada (and also BP2P).

* With GNAT from command line, type "gnatmake p2ada", "compile"
  (DOS/Windows batch file), or use the makefile.
  If you have a case-sensitive file system, you have to unzip newp2ada.zip
  with the lowercase option (unzip -LL newp2ada.zip).
  aflex and ayacc must have been made (see below) and copy or link them here.
  Files (especially pascal.l, pascal.y, alias.txt and nptest?.pas)
  must have UNIX (LF) end of line on UNIX platform,
  transform them with tr_dos2unix utility if not done with unzip option -aa.
  Here are commands to unpack and build on UNIX:
$ cd <download directory>
$ mkdir newp2ada
$ cd newp2ada
$ unzip -aaLL ../newp2ada.zip
$ cd newp2ada
$ mkdir acu
# Modify p2ada options to produce Unix end of file
$ vi p2ada_options.ads
/DOS<ret>
n
cwUnix<esc>
ZZ
$ make
$ make test.ada

* With GNAT and AdaGIDE, open p2ada.adb and press F3.

* With ObjectAda, open p2ada.prj and press F7, or try "adamake p2ada.adb".

" " "

The options file defaults are fine for me.

If I type make I get:
No rule to make target `aflex', needed by `pascal_dfa.adb'

I am using debian stable.

Any hints on what I might be doing wrong ?

Thanks for reading-Patrick




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

end of thread, other threads:[~2012-12-23 13:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-22 23:04 Help building p2ada Patrick
2012-12-22 23:16 ` Gustaf Thorslund
2012-12-23  2:33   ` Patrick
2012-12-23  8:40 ` Brian Drummond
2012-12-23  9:55 ` gautier_niouzes
2012-12-23 13:45   ` Patrick

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