Re: AGT Version 1.83
11 Aug 1995 18:21:36 GMT
In article <406f18$e27@rigel.pixi.com>, menichel@pixi.com says...
>
>Currently, this version of AGT will only run on IBM/compatibles. I think
>it would be cool if someone would convert the Pascal source code to ANSI
>C. This was, AGT would become "portable", much like Inform and TADS. I'd
>do it myself, but my knowledge of C is minimal... (Sounds like, "The
>conversion of AGT from Pascal to C is left as an exercise for the
>reader", huh?)
>
I'm currently working on a Borland C++ port of AGT v1.81 (the lastest I could
find). I'll FTP 1.83 and run a compare on the pascal source to find what needs
to be placed in the C++ port.
The biggest problems I had to worry about were strings and arrays. Pascal can
base arrays from [min..max] and C++ always bases them from 0 -- hence the
PArray<class T, int min, int max> template. Strings were a bit trickier -- the
ANSI string class works well, but I hade to work on the i/o to make it
fixed-length (which Pascal appears to have -- more research is needed there,
any answers from the vast and unpaid research dept?).
I'm mostly done with the compiler, and about ready to start on the
interpreter. I'll let everyone know when it's complete (but I don't have a
lot of spare time right now).