Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Programming languages > To Resuscite 15-year-old Pascal Program
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 20th October 23:27
sandy
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program



Dear comp.lang.pascal.misc,

I recently found a printout of a Pascal program -- a parser and


hopes that it might help, the first few lines go...

{$O calculator}
{$S+ segmentation on }
{$I- no io-checking }
{$R+ range checking }
{$D+ include debug symbols}

USES
PasPrinter, MemTypes, SANE, QuickDraw, OSintf, ToolIntf, MacPrint;

I've scanned it into a file, done as many corrections as I can
find, but there are still many little typos from the scanning. I want
to get the program working again on Windows NT, preferably as Pascal,
otherwise hand-porting it to another language.

What are the possibilities on NT?

With kind regards, Sandy --
Alexander Anderson <junk.rubbish@alma-services.abel.co.uk>
(Yorkshire, England)

Where there is no vision, the people perish.
  Reply With Quote


  sponsored links


2 20th October 23:28
scott moore
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program



Should be easier to run it on Pascal than change it to another language.

The "modula style units" you show above are also common to UCSD, Borland
and deriviatives.
  Reply With Quote
3 20th October 23:28
hanso
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program


Try Freepascal, has the Apple/UCSD Pascal units concept via the Borland heritage
and, as the name says is free! Runs fine on Linux and Windows.
Ofcourse the Mac specific units have no equivalents,
Hans, http://www.hansotten.com
  Reply With Quote
4 20th October 23:28
arash partow
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program


Wouldn't it be easier and more appropriate just to re-write the thing
from scratch?

programming in 1991, as such you should by now have a better
understanding of programming and all the related concepts such that
you'll be able to write a better whatever it was you wanted to get
running.


Arash Partow
__________________________________________________ ______
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.net
  Reply With Quote
5 20th October 23:29
scott moore
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program


Do you build a new house for yourself when you find a plumbing problem ?
  Reply With Quote
6 20th October 23:29
waldek hebisch
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program


GPC should run on NT and should handle well classic or USCD Pascal.

--
Waldek Hebisch
hebisch@math.uni.wroc.pl
  Reply With Quote
7 20th October 23:29
sandy
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program


Is the example in USCD Pascal then? As a student back then, '91, I
can't remember. What does GPC stand for in full? GNU (hopefully!)
Pascal Compiler? Gdansk Pascal Compiler?

With kind regards, Sandy --
Alexander Anderson <junk.rubbish@alma-services.abel.co.uk>
(Yorkshire, England)

Where there is no vision, the people perish.
  Reply With Quote
8 20th October 23:29
martin liddle
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program


In message <Bzq3daAnGqYDNwEd@alma-services.abel.co.uk>, Sandy
<junk.rubbish@alma-services.abel.co.uk> writes

I assume it is in Apple Pascal which can trace its roots back to UCSD.

Correct. See <http://www.gnu-pascal.de/gpc/h-index.html>. We use GPC
(but under Linux) and are very happy with it.
--
PLEASE NOTE NEW ADDRESS:
Martin Liddle, Tynemouth Computer Services, 3 Kentmere Way,
Staveley, Chesterfield, Derbyshire, S43 3TW.
Web site: <http://www.tynecomp.co.uk>.
  Reply With Quote
9 20th October 23:29
chris burrows
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program


I guess it depends on the extent of the plumbing problem. If OTOH there was
a serious problem with the foundations I would rebuild or (more likely)
move.

Back on the topic of programming though, I've just completed a Pascal to
Oberon translator to help me make such moves.

--
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp
  Reply With Quote
10 22nd October 02:57
waldek hebisch
External User
 
Posts: 1
Default To Resuscite 15-year-old Pascal Program


Apple started with USCD Pascal but than evolved its own features. Only
looking at the whole program one can tell if it is more like USCD or
modern Mac Pascal (and no, I am not volunteering to examine the program
for you). What I am telling you is that gpc supports some features
from classic and USCD Pascal which are present in Mac Pascal but absent
in some other compilers. I do not know if your program uses such features,
but you asked for options so I give you one.

The program clearily wants to use Mac specific units and that is IMHO your biggest problem.


As other wrote: GNU Pascal Compiler

--
Waldek Hebisch
hebisch@math.uni.wroc.pl
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666