Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Ansi -iso > Re: New section...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 22 Topic 207 of 215
Post > Topic >>

Re: New sections to the Standard Pascal website

by Scott Moore <samiam@[EMAIL PROTECTED] > Apr 26, 2008 at 11:15 AM

thomas.mertes@[EMAIL PROTECTED]
 wrote:

> 
> Pascal 6000 which predates P4 already had an 'otherwise'
> clause. IMHO it was a big mistake to omit it in the P4
> compiler and in the ISO 7185 standard. Do you plan to
> add 'otherwise'/'else' to the P5? Since I switched
> from Pascal to C in the early 90s, I am not sure if
> modern Pascals prefer 'otherwise' or 'else' for 'case'
> statements.

Yes, it was (the otherwise) an extension that was local
to the University of Minnesota version.

Remember that the P4 compiler was designed in the 1970's
by Wirth's students in Zurich, and was not designed to implement
the entire Pascal language as it existed at that time, it was
deliberately subsetted.

I have considered P4 to be a historical item. There are actually
a lot of copies running around the net, as you have seen in
this thread (Steve pemberton has a copy, so does the CDC 6000
history group). I updated it to be ->source<- compliant with
ISO 7185 because otherwise, I wouldn't be able to compile it,
since I don't use a CDC compiler from the 1970s (even the 1984
CDC 6000 compiler would have refused to compile it in the
original form). Of course it would be useful to also have
a more modern, updated P4, which I did, and called it P5.

Now, lets go over my plans for P5 (and beyond), then lets
go over yours :-)

1. P5 was P4 brought up to accept ISO 7185 as well as to be
written in ISO 7185. Basically ISO 7185 is the 1970's Pascal,
with clarifications made by the Pascal standards committees.
It is P4 with the "subsetting" removed.

2. I agree that P5 should go further, such as extended
constructs. I would tend to call that P6 or more (p7, p8, etc).
Of course, its according to time permitting.

How about your plans? Its really up to you if you want to go
to town adding new constructs. That's what Wirth wanted when
he (they) issued the P4 kit.

So I would say, if you want an otherwise clause, that would
be a good starting place for you to get used to
changing/extending the compiler!

Remember that Steve Pembertons description of the P4 compiler
is online, and so are other original do***ents on it written
back in the 1970s (see the
http://www.standardpascal.org/do***ents.html
section on the
website).

P5 adds new SC (Stack Computer) operation codes, but the changes
are well do***ented in the source, so the P4 do***entation plus
the source will be adequate. I also hope to produce more
sup****ting do***ents for the P5 compiler in the near future.

> 
> BTW.: Under which license is the P5 released?
> GPL would be great.
> Would there be a conflict the public domain P4 and the GPL?
> 
> Greetings Thomas Mertes

I don't see any. Public domain is a centuries old concept, and
the P4 compiler has been public domain since the 1970s (since
it was created).

Of course, it is debatable what GPLing a public domain software
means, since anyone can take the old, public domain version of
the P4 compiler and do whatever they want with it, without
regard to the GPL.

It seems to me that what you would be effectively doing by
taking a P4 or P5 compiler, changing it and GPLing that, would
be that nobody could use your version of the compiler without
obeying the GPL.

In the immortal words of Billy Crystal, "yee hah", have fun with
the code.

Scott Moore
 




 22 Posts in Topic:
New sections to the Standard Pascal website
Scott Moore <samiam@[E  2008-03-28 17:00:28 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-26 02:07:48 
Re: New sections to the Standard Pascal website
Scott Moore <samiam@[E  2008-04-26 08:09:08 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-26 10:16:16 
Re: New sections to the Standard Pascal website
Scott Moore <samiam@[E  2008-04-26 11:15:56 
Re: New sections to the Standard Pascal website
Marco van de Voort <ma  2008-04-28 12:36:18 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-28 05:28:49 
Re: New sections to the Standard Pascal website
Scott Moore <samiam@[E  2008-04-28 08:10:45 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-28 06:50:58 
Re: New sections to the Standard Pascal website
Marco van de Voort <ma  2008-04-28 13:59:56 
Re: New sections to the Standard Pascal website
Ivan Levashew <octagra  2008-04-28 22:45:28 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-28 12:17:07 
Re: New sections to the Standard Pascal website
Marco van de Voort <ma  2008-04-28 19:46:19 
Re: New sections to the Standard Pascal website
Scott Moore <samiam@[E  2008-04-28 14:01:17 
Re: New sections to the Standard Pascal website
Marco van de Voort <ma  2008-04-29 07:57:24 
Re: New sections to the Standard Pascal website
Scott Moore <samiam@[E  2008-04-29 09:26:49 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-29 01:45:18 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-29 10:25:56 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-29 12:40:50 
Re: New sections to the Standard Pascal website
Marco van de Voort <ma  2008-04-30 12:14:28 
Re: New sections to the Standard Pascal website
Robert Riebisch <Rober  2008-04-29 22:29:19 
Re: New sections to the Standard Pascal website
thomas.mertes@[EMAIL PROT  2008-04-29 13:47:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 0:36:05 CDT 2008.