Leo:
- don't include *any* file variables in the Program name,
Whoops, a minor typo, that short pascal file should have been program shell; var afile: text; begin Create(afile,out_file,"foo.txt"); writeln(afile, 'shell output'); end. Notice the second argument to Create: out_file. Ada is very picky, you have to tell it that you want to write to the file "foo.txt". If you want to read from a file use Open (afile,in_file,"bah.txt"); rather than reset(afile,"bah.txt")
Got it.
That was enough for me to build a horribly slow preprocessor that fixes the code before translation.
Seems to me that should be part of p2ada.
I see the next major problem is 'anonymous arrays not allowed as components' but a little googling showed how to fix that.
Seems like the road to convert to ada is open but with so many programs it is likely a big job.
Tom
Thomas D. Schneider, Ph.D. Senior Investigator National Institutes of Health National Cancer Institute Center for Cancer Research RNA 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)