On 2016-05-20 10:40, Carlo Kok wrote:


On 2016-05-19 13:10, Torsten Bonde Christiansen wrote:
Hi.

I am currently looking into integrating a custom language parser into my
program and have been
searching the web for parser generators that can create Pascal code from
a custom language.

So far in my search i have found the following "options":

* GOLD Parser: http://www.goldparser.org/
Was last updated in sept. 2012 and the lastest pascal implementation is
not for the lastest version of the program!

* COCO/R: http://www.ssw.uni-linz.ac.at/Research/Projects/Coco/
Same as with the GOLD parser - last updated in 2014 and lastest pascal
implementation is for an older version of the program.

* TP Yacc/Lex: (included in Free Pascal)
Is included with Free Pascal, but the generated code is non-OO, and
seems to rely on text-files for input.

So if there is anyone out there who knows of such a generator I would be
glad to know.


It's been my experience that all the compiler compilers have one or more flaws that make it more work in the end to use them than to just write a parser by hand.

Previously I have worked with TP Lex/Yacc and it works fine with limitations it has. And yes, using a parser generator is not a magic wand that creates code to run without modification, but on most occations I find that the post-processing required with this approach is far less than writing my own parser.

kind regards,
Torsten Bonde Christiansen.



_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to