February 13 , 2008
Coco/R for Delphi is a (freeware) compiler compiler similar to the Lex/Yacc tools. Coco/R for Delphi accepts as input, an attributed, context-free EBNF grammar; as output it generates a recursive descent parser, a matching scanner, a Delphi component wrapper, and an optional test project. Coco/R grammars must conform, with some exceptions, to LL(1) restrictions.
The compiler component for Coco/R for Delphi is, of course, generated with Coco/R for Delphi.
I no longer maintain Coco/R for Delphi. I now code exclusively in C# for all of my personal development.
To learn more about Coco/R: The primary Coco/R web page is http://www.scifac.ru.ac.za/coco/. This site is maintained by Prof. Pat Terry. Prof. Terry's book, Compilers & Compiler Generators, has several chapters on Coco/R. Compilers & Compiler Generators is out of print; however, Prof. Terry maintains a PDF version on his web site.
Another (out of print) book on Coco by Hanspeter M?ssenb?ck and Peter Rechenberg entitled "A Compiler Generator for Microcomputers" is based on an earlier version of Coco. This book may not be readily available; it took me over a year to locate my copy.
Coco/R References
Coco/R for Delphi
Coco/R for Delphi Source
Coco/R for Delphi (old version with IDE)
联系客服