amiam@samiam-home-pc:~/scratch/pascal-p5/sample_programs$ p5 hello
Compiling and running hello
P5 Pascal compiler vs. 1.3
Pascal-P5 complies with the requirements of level 0 of ISO/IEC 7185.
1 -56 program hello(output);
2 -56
3 -56 begin
4 3
5 3 writeln('Hello, world')
6 11
7 11 end.
Errors in program: 0
P5 Pascal interpreter vs. 1.3
Assembling/loading program
Running program
Hello, world
*** Runtime error [7]: Stack balance
program complete
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
As you can tell, it didn't get that much testing on linux, more on
windows.
I'll look into it.
Scott Franco
--------- Original Message ---------Subject: RE: Re: Plan to Update GPC
From: "scott andrew franco" <samiam@moorecad.com>
Date: 8/17/20 2:28 pm
To: "Schneider, Thomas (NIH/NCI) [E]" <schneidt@mail.nih.gov>
Cc: "gpc@gnu.de" <gpc@gnu.de>
The P5 archive tries very hard to work equally on both Windows and Linux.Looking at the 1.3 archive, the Linux files weren't correctly set up for linux, whichinvolves changing the line endings to be correct for that system (the standard CRLFor LF only issue between these systems).We have having rolling blackouts here in CA, so I am delayed fixing this. I'll try to fixthe archive by tonight.Regards,Scott Franco--------- Original Message ---------_______________________________________________ Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpcSubject: Re: Plan to Update GPC
From: "Schneider, Thomas (NIH/NCI) [E]" <schneidt@mail.nih.gov>
Date: 8/15/20 10:34 am
To: "scott andrew franco" <samiam@moorecad.com>
Cc: "gpc@gnu.de" <gpc@gnu.de>
Scott:
> >I don't understand the difference between p4 and p5. I see p6
> >is under development. If I try it, should I use:
>
> Pascal-P4 is a Pascal subset. Pascal-P5 is full ISO 7185. Pascal-P6
> is an extended Pascal. P5 is 1.3, so yes, pascal-p5_1_3.tar.gz.
Ok, thanks!
I got
https://sourceforge.net/projects/pascalp5/files/pascal-p5_1_3.tar.gz/download
There is no mention of macOS in the README.
The README says:
> The full instructions for running and setting up the P5 compiler/interpreter
> have all been incorporated into the document:
>
> doc/the_p5_compiler.docx
>
> Which is a Microsoft Word document, 2007 or later. it is also available in the
> formats:
>
> doc/the_p5_compiler.pdf Adobe Portable Document Format.
> doc/the_p5_compiler.html Web page format.
> doc/the_p5_compiler.doc Word 1997-2003 format.
>
> Please consult one of these documents for full instructions on how to use P5.
But that's not true. The doc/ diretory only contains:
The_Programming_Language_Pascal_1973.pdf
basic.docx
iso7185rules.html
the_p5_compiler.docx
The_Programming_Language_Pascal_1973.pdf
is great to have a copy of!
I used libreoffice to convert to pdf:
/Applications/LibreOffice.app/Contents/MacOS/soffice -env:UserInstallation=file:///tmp/schneidt.lico --headless --convert-to pdf basic.docx
> 2 Beta software warning
> p5 Basic is beta software at this time (version <1).
> It should not be considered reliable for production use.
Oh my. Looks like your documentation may be out of date.
Is this still beta despite version > 1?
Convert the other docx:
/Applications/LibreOffice.app/Contents/MacOS/soffice -env:UserInstallation=file:///tmp/schneidt.lico --headless --convert-to pdf the_p5_compiler.docx
This one is dated August 29, 2014 and on page 14 it says:
> Is P5 a sueable compiler for real applications? I would assert that
> it is not.
That's no good!
> ./setpath
> ./configure
> make
% ./setpath
./setpath: Permission denied.
You have the windows setpath.bat but have not set the permissions on
setpath correctly.
% chmod u+x setpath
egg 320% ./configure
./configure: Command not found.
% chmod a+rx configure
% ls -l configure
-rwxr-xr-x 1 schneidt admin 6469 Jan 5 2018 configure*
% ./configure
./configure: Command not found.
%
This is really weird.
Please set it up to work on macOS.
Tom
Thomas D. Schneider, Ph.D.
Senior Investigator
National Institutes of Health
National Cancer Institute
Center for Cancer Research
RNA Biology Laboratory
Biological Information Theory Group
Frederick, Maryland 21702-1201
schneidt@mail.nih.gov
https://alum.mit.edu/www/toms