RE: Re: Plan to Update GPC
"scott andrew franco" <[email protected]> Mon, 17 Aug 2020 23:40:28 -0700
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <20200817234028.6c61c97e98fe7bb02193b2d6dca4a85a.0172a50971.mailapi@email15.godaddy.com> |
--===============6570144694294738499==
Content-Type: multipart/alternative;
boundary="=_0ac29f277dfbf2d8914559c26af484ab"
--=_0ac29f277dfbf2d8914559c26af484ab
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
I fixed up the line endings and put the archive back in Pascal-p5_1_3.tar=
=2Egz.
=20
It works better,but there is still something wrong with it, and it only hap=
pens
on the linux version.
=20
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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.
=20
1 -56 program hello(output);=20
2 -56=20
3 -56 begin=20
4 3=20
5 3 writeln('Hello, world')=20
6 11=20
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.
=20
I'll look into it.
=20
Scott Franco
=20
=20
--------- Original Message --------- Subject: RE: Re: Plan to Update GPC
From: "scott andrew franco" <[email protected]>
Date: 8/17/20 2:28 pm
To: "Schneider, Thomas (NIH/NCI) [E]" <[email protected]>
Cc: "[email protected]" <[email protected]>
The P5 archive tries very hard to work equally on both Windows and Linux=
=2E
Looking at the 1.3 archive, the Linux files weren't correctly set up for li=
nux, which
involves changing the line endings to be correct for that system (the stand=
ard CRLF
or LF only issue between these systems).
=20
We have having rolling blackouts here in CA, so I am delayed fixing this. I=
'll try to fix
the archive by tonight.
=20
Regards,
=20
Scott Franco
=20
--------- Original Message --------- Subject: Re: Plan to Update GPC
From: "Schneider, Thomas (NIH/NCI) [E]" <[email protected]>
Date: 8/15/20 10:34 am
To: "scott andrew franco" <[email protected]>
Cc: "[email protected]" <[email protected]>
Scott:
=20
> >I don't understand the difference between p4 and p5. I see p6
> >is under development. If I try it, should I use:
>=20
> Pascal-P4 is a Pascal subset. Pascal-P5 is full ISO 7185. Pascal-P6=20
> is an extended Pascal. P5 is 1.3, so yes, pascal-p5_1_3.tar.gz.
=20
Ok, thanks!
=20
I got
=20
https://sourceforge.net/projects/pascalp5/files/pascal-p5_1_3.tar.gz/downl=
oad
=20
There is no mention of macOS in the README.
=20
The README says:
=20
> The full instructions for running and setting up the P5 compiler/interpr=
eter
> have all been incorporated into the document:
>=20
> doc/the_p5_compiler.docx
>=20
> Which is a Microsoft Word document, 2007 or later. it is also available =
in the
> formats:
>=20
> 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.
>=20
> Please consult one of these documents for full instructions on how to us=
e P5.
=20
But that's not true. The doc/ diretory only contains:
=20
The_Programming_Language_Pascal_1973.pdf
basic.docx
iso7185rules.html
the_p5_compiler.docx
=20
The_Programming_Language_Pascal_1973.pdf
is great to have a copy of!
=20
I used libreoffice to convert to pdf:
=20
/Applications/LibreOffice.app/Contents/MacOS/soffice -env:UserInstallation=
=3Dfile:///tmp/schneidt.lico --headless --convert-to pdf basic.docx
=20
> 2 Beta software warning
> p5 Basic is beta software at this time (version <1).
> It should not be considered reliable for production use.
=20
Oh my. Looks like your documentation may be out of date.
Is this still beta despite version > 1?
=20
Convert the other docx:
=20
/Applications/LibreOffice.app/Contents/MacOS/soffice -env:UserInstallation=
=3Dfile:///tmp/schneidt.lico --headless --convert-to pdf the_p5_compiler.do=
cx
=20
This one is dated August 29, 2014 and on page 14 it says:
=20
> Is P5 a sueable compiler for real applications? I would assert that
> it is not.
=20
That's no good!
=20
> ./setpath
> ./configure
> make
=20
% ./setpath
./setpath: Permission denied.
=20
You have the windows setpath.bat but have not set the permissions on=20
setpath correctly.
% chmod u+x setpath
=20
egg 320% ./configure
./configure: Command not found.
=20
% chmod a+rx configure
% ls -l configure
-rwxr-xr-x 1 schneidt admin 6469 Jan 5 2018 configure*
% ./configure
./configure: Command not found.
%=20
=20
This is really weird.
=20
Please set it up to work on macOS.
=20
Tom
=20
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
[email protected]
https://alum.mit.edu/www/toms
_______________________________________________ Gpc mailing list Gpc@gnu=
=2Ede https://www.g-n-u.de/mailman/listinfo/gpc
--=_0ac29f277dfbf2d8914559c26af484ab
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<div>I fixed up the line endings and put the archive back in Pascal-p5_1_3=
=2Etar.gz.</div>
<div> </div>
<div>It works better,but there is still something wrong with it, and it onl=
y happens</div>
<div>on the linux version.</div>
<div> </div>
<div>>>>>>>>>>>>>>>>>>&g=
t;>>>>>>>>>>>></div>
<div>
<p>amiam@samiam-home-pc:~/scratch/pascal-p5/sample_programs$ p5 hello</p>
<p>Compiling and running hello</p>
<p>P5 Pascal compiler vs. 1.3<br />Pascal-P5 complies with the requirements=
of level 0 of ISO/IEC 7185.</p>
<p><br /> 1 -56 program hello(output); <br /> 2 -56 <br /> 3 -56 begin <br =
/> 4 3 <br /> 5 3 writeln('Hello, world') <br /> 6 11 <br /> 7 11 end.</p>
<p>Errors in program: 0<br />P5 Pascal interpreter vs. 1.3</p>
<p>Assembling/loading program<br />Running program</p>
<p>Hello, world</p>
<p>*** Runtime error [7]: Stack balance</p>
<p>program complete</p>
<p><<<<<<<<<<<<<<<<<<=
<<<<<<<<<<<<<<<<<<<=
;<<<<<<<<<<<<<</p>
<p>As you can tell, it didn't get that much testing on linux, more on</p>
<p>windows.</p>
<p> </p>
<p>I'll look into it.</p>
<p> </p>
<p>Scott Franco</p>
</div>
<div> </div>
<blockquote class=3D"threadBlockQuote" style=3D"border-left: 2px solid #C2C=
2C2; padding-left: 3px; margin-left: 4px;">--------- Original Message -----=
----
<div>Subject: RE: Re: Plan to Update GPC<br />From: "scott andrew franco" &=
lt;[email protected]><br />Date: 8/17/20 2:28 pm<br />To: "Schneider, =
Thomas (NIH/NCI) [E]" <[email protected]><br />Cc: "[email protected]" &=
lt;[email protected]><br /><br />
<div>The P5 archive tries very hard to work equally on both Windows and Lin=
ux.</div>
<div>Looking at the 1.3 archive, the Linux files weren't correctly set up f=
or linux, which</div>
<div>involves changing the line endings to be correct for that system (the =
standard CRLF</div>
<div>or LF only issue between these systems).</div>
<div> </div>
<div>We have having rolling blackouts here in CA, so I am delayed fixing th=
is. I'll try to fix</div>
<div>the archive by tonight.</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Scott Franco</div>
<div> </div>
<blockquote class=3D"threadBlockQuote" style=3D"border-left: 2px solid #C2C=
2C2; padding-left: 3px; margin-left: 4px;">--------- Original Message -----=
----
<div>Subject: Re: Plan to Update GPC<br />From: "Schneider, Thomas (NIH/NCI=
) [E]" <[email protected]><br />Date: 8/15/20 10:34 am<br />To: "=
scott andrew franco" <[email protected]><br />Cc: "[email protected]" <=
[email protected]><br /><br />Scott:<br /> <br /> > >I don't understand t=
he difference between p4 and p5. I see p6<br /> > >is under developme=
nt. If I try it, should I use:<br /> > <br /> > Pascal-P4 is a Pascal=
subset. Pascal-P5 is full ISO 7185. Pascal-P6 <br /> > is an extended P=
ascal. P5 is 1.3, so yes, pascal-p5_1_3.tar.gz.<br /> <br /> Ok, thanks!<br=
/> <br /> I got<br /> <br /> https://sourceforge.net/projects/pascalp5/fil=
es/pascal-p5_1_3.tar.gz/download<br /> <br /> There is no mention of macOS =
in the README.<br /> <br /> The README says:<br /> <br /> > The full ins=
tructions for running and setting up the P5 compiler/interpreter<br /> >=
have all been incorporated into the document:<br /> > <br /> > doc/t=
he_p5_compiler.docx<br /> > <br /> > Which is a Microsoft Word docume=
nt, 2007 or later. it is also available in the<br /> > formats:<br /> &g=
t; <br /> > doc/the_p5_compiler.pdf Adobe Portable Document Format.<br /=
> > doc/the_p5_compiler.html Web page format.<br /> > doc/the_p5_comp=
iler.doc Word 1997-2003 format.<br /> > <br /> > Please consult one o=
f these documents for full instructions on how to use P5.<br /> <br /> But =
that's not true. The doc/ diretory only contains:<br /> <br /> The_Programm=
ing_Language_Pascal_1973.pdf<br /> basic.docx<br /> iso7185rules.html<br />=
the_p5_compiler.docx<br /> <br /> The_Programming_Language_Pascal_1973.pdf=
<br /> is great to have a copy of!<br /> <br /> I used libreoffice to conve=
rt to pdf:<br /> <br /> /Applications/LibreOffice.app/Contents/MacOS/soffic=
e -env:UserInstallation=3Dfile:///tmp/schneidt.lico --headless --convert-to=
pdf basic.docx<br /> <br /> > 2 Beta software warning<br /> > p5 Bas=
ic is beta software at this time (version <1).<br /> > It should not =
be considered reliable for production use.<br /> <br /> Oh my. Looks like y=
our documentation may be out of date.<br /> Is this still beta despite vers=
ion > 1?<br /> <br /> Convert the other docx:<br /> <br /> /Applications=
/LibreOffice.app/Contents/MacOS/soffice -env:UserInstallation=3Dfile:///tmp=
/schneidt.lico --headless --convert-to pdf the_p5_compiler.docx<br /> <br /=
> This one is dated August 29, 2014 and on page 14 it says:<br /> <br /> &g=
t; Is P5 a sueable compiler for real applications? I would assert that<br /=
> > it is not.<br /> <br /> That's no good!<br /> <br /> > ./setpath<=
br /> > ./configure<br /> > make<br /> <br /> % ./setpath<br /> ./set=
path: Permission denied.<br /> <br /> You have the windows setpath.bat but =
have not set the permissions on <br /> setpath correctly.<br /> % chmod u+x=
setpath<br /> <br /> egg 320% ./configure<br /> ./configure: Command not f=
ound.<br /> <br /> % chmod a+rx configure<br /> % ls -l configure<br /> -rw=
xr-xr-x 1 schneidt admin 6469 Jan 5 2018 configure*<br /> % ./configure<br =
/> ./configure: Command not found.<br /> % <br /> <br /> This is really wei=
rd.<br /> <br /> Please set it up to work on macOS.<br /> <br /> Tom<br /> =
<br /> Thomas D. Schneider, Ph.D.<br /> Senior Investigator<br /> National =
Institutes of Health<br /> National Cancer Institute<br /> Center for Cance=
r Research<br /> RNA Biology Laboratory<br /> Biological Information Theory=
Group<br /> Frederick, Maryland 21702-1201<br /> [email protected]<br =
/> https://alum.mit.edu/www/toms</div>
</blockquote>
_______________________________________________ Gpc mailing list [email protected]=
https://www.g-n-u.de/mailman/listinfo/gpc</div>
</blockquote>
--=_0ac29f277dfbf2d8914559c26af484ab--
--===============6570144694294738499==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
--===============6570144694294738499==--