ContextFree.js

Here you can discuss and share functionality improvements and helper programs to make Context Free better.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
Aza
Posts: 1
Joined: Mon Jun 30, 2008 3:19 pm

ContextFree.js

Post by Aza »

Hello All,

I've released a Javascript port of Context Free. It's all open source (hosted on Google code). I'd love people's thoughts and certainly help in making it more full featured (it's lack such things as z-index!).

Thanks![/url]

User avatar
mtnviewmark
Site Admin
Posts: 81
Joined: Wed May 04, 2005 12:46 pm
Location: Mountain View, CA
Contact:

Post by mtnviewmark »

Welcome to the community, Aza! The javascript version is quite cool.

Another important missing feature is auto sizing of the image size.

Okay people: Step up and help make this version complete!
I'm the "m" in "mtree.cfdg"

drhorrible
Posts: 1
Joined: Thu Aug 07, 2008 2:13 am

Post by drhorrible »

I love it! (so much I've joined this forum). I think I can help with the parsing of the grammar, but I would like to see how the C++ does this. I downloaded the source for ContextFree, but I'm having difficulties finding the code I'm looking for. Can someone give me a pointer?

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

We use flex and bison to generate the cfdg compiler. The cfdg.l and cfdg.y files contain the flex and bison grammars. They generate code that calls functions in yglue.cpp that build the data structures for the cfdg file. The renderer interprets these data structures to create the cfdg image.

Post Reply