Why not use ruby to generate the C++ code and/or write a simple parser
in ruby? A smaller, more simple embedded is lua, that will probably be a
lot more easy to port.