Page 1 of 1

ContextFree.js

Posted: Mon Jun 30, 2008 3:25 pm
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]

Posted: Tue Jul 01, 2008 3:49 am
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!

Posted: Thu Aug 07, 2008 2:19 am
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?

Posted: Thu Aug 07, 2008 8:20 am
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.