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!).
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?
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.