Hello,
Context Free is an implementation of a graphics language:
http://www.contextfreeart.org
Here's an example graphic created with it:
http://www.contextfreeart.org/gallery/view.php?id=541
The source code used to generate the image is also on that page.
Much of the Context Free language has been "embedded" into Factor. The
implementation is in the 'cfdg' vocabulary. I say "embedded" because while it
doesn't parse the CF language, it offers a Factor vocabulary which implements
the CF language *semantics* quite closely. For example, the Factor vocabulary
which implements the graphic above is:
http://tinyurl.com/6d66mh
A few CF models come with the Factor distribution. The quickest way to try
them out is to do:
"demos" run
You'll get a list of "runnable" demos that are included with Factor. All
cfdg.models.* vocabularies are examples that have been ported from the
Context Free Art web site gallery.
A good way to learn the Factor version of CF is to look at the example models
and compare them with the actual CF implementations in the gallery on their
web site. If anybody ports CF examples, let me know and I'll add it to our
collection.
If you'd like to receive an Honorary Doctorate from Factor University, use
Chris Double's amazing 'peg.ebnf' vocabulary to build a parser for the CF
language. Then use it to generate Factor code which uses the 'cfdg'
vocabulary.
Honorary Bachelors degrees are available to anybody who implements the
unimplemented parts of CF. ;-)
Ed
PS: You'll have to use the latest code in git to try this stuff out.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk