Coco/R Pascal restrictions



Hello,

I ran into a problem with the oldish but, as far as I know, still
current 1.53 version of Coco/R for Turbo Pascal (although I compile
the generated program with Free Pascal instead). Back then, CocoR was
compiled with Turbo Pascal for DOS, complying with the 64 kB data
segment requirement, meaning that only a relatively small amount of
terminals, nodes and such were allowed. I ran out of the amount of
literal terminals allowed (127) with my grammar. I tried to recompile
Coco/R with Free Pascal, with much larger data structures to host
larger grammars but Coco/R's own grammar is not accepted by itself.

Does anybody have a recompiled version of CocoR handy? I know I could
just modify my translator to be written with another version of CocoR,
probably C or C++ (it's a fairly straightforward translator, much like
Ratfor used to be, to translate a structured version of a scripting
language into the more rigid original format, so it wouldn't be too
difficult) but I expect the result to be used in a Pascal/Delphi
environment later and it would be better to stick with Free Pascal.

Regards,

Gábor DEÁK JAHN

-------------------------------------------------------------------
DEÁK JAHN, Gábor -- Budapest, Hungary
WWW: www.tramontana.co.hu
E-mail: djg@xxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: c/pascal compiler differences
    ... > Delphi first compiles units then it links the project. ... Is there a way to make the pascal example compile and then later link ... I think pascal/delphi will be another story! ...
    (comp.lang.c)
  • Re: c/pascal compiler differences
    ... > Delphi first compiles units then it links the project. ... Is there a way to make the pascal example compile and then later link ... I think pascal/delphi will be another story! ...
    (alt.comp.lang.borland-delphi)
  • Re: Compile error - HELP!
    ... >it to compile in FreePascal. ... In that case there would be much to be said for asking in a newsgroup ... and not in a Delphi group. ... Pascal/Delphi date routines are in dateprox.pas; ...
    (comp.lang.pascal.delphi.misc)
  • Re: My Big Break (A question about Linux IDEs for PHP)
    ... > appears to be written in pascal/delphi i wonder that you can't compile ... > it with kylix;) ... But have you ever tried to port a larger app from windows to ...
    (comp.lang.php)