Pascal:
I got the translator and compiler working but could not translate and compile a simple pascal program of my own.
verysimple.p - my pascal program verysimple.adb - my pascal program translated to Ada
When I try to gnatmake:
% gnatmake verysimple.adb gcc -c verysimple.adb verysimple.adb:32:01: no candidate interpretations match the actuals: verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-tienio.ads:50, instance at line 24 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-tienio.ads:34, instance at line 24 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-tiflio.ads:79, instance at a-lfteio.ads:18 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-tiflio.ads:61, instance at a-lfteio.ads:18 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-tiflio.ads:79, instance at a-flteio.ads:20 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-tiflio.ads:61, instance at a-flteio.ads:20 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-tiinio.ads:76, instance at a-inteio.ads:18 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-tiinio.ads:60, instance at a-inteio.ads:18 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-textio.ads:241 verysimple.adb:32:01: missing argument for parameter "Item" in call to "put" declared at a-textio.ads:207 verysimple.adb:32:05: expected type "Standard.Boolean" verysimple.adb:32:05: found private type "Ada.Text_Io.File_Type" verysimple.adb:32:05: ==> in call to "Put" at a-tienio.ads:40, instance at line 24 verysimple.adb:32:05: ==> in call to "Put" at a-tiflio.ads:68, instance at a-lfteio.ads:18 verysimple.adb:32:05: ==> in call to "Put" at a-tiflio.ads:68, instance at a-flteio.ads:20 verysimple.adb:32:05: ==> in call to "Put" at a-tiinio.ads:66, instance at a-inteio.ads:18 verysimple.adb:32:05: ==> in call to "Put" at a-textio.ads:242 verysimple.adb:32:05: ==> in call to "Put" at a-textio.ads:208 gnatmake: "verysimple.adb" compilation error
Any idea what I'm dong wrong?
Thanks,
Tom
Thomas D. Schneider, Ph.D. Senior Investigator National Institutes of Health National Cancer Institute Center for Cancer Research Gene Regulation and Chromosome Biology Laboratory Molecular Information Theory Group Frederick, Maryland 21702-1201 schneidt@mail.nih.gov https://schneider.ncifcrf.gov (current link) https://alum.mit.edu/www/toms (permanent link)