[fpc-devel] Coco/R usage for FPC

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Jan 26 10:44:00 CET 2010


Speaking of language syntax in another thread it got me thinking.
Being around FPC for a few years now I have read many messages and saw
patches regarding language extensions etc...

Then today by pure accident while searching for Modula-2 if..then..end
syntax I came across this page:


Coco/R ( a compiler generator). A language syntax is described in a
rather simple manner. You then feed this information into a program
and it generates a parser and scanner.  The above URL mentions
versions available for Modula-2, Pascal, Delphi and many more...

Students from the Rhodes University used Coco/R to create a new
teaching language based on Modula-2. They called in Umbriel, and used


I gather FPC doesn't use something like this?  If so, any specific
reason why not? It seems like a very easy way to extend the language
though. Simply describe the syntax and another program generates the

Here is more information on Wikipedia about Coco/R

  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the fpc-devel mailing list