CAST.RUBYFORGE.ORG
CAST -- Ruby's C parsing dog. Woof.CAST parses C code into an abstract syntax tree (AST), lets you break it, then vomit it out as code. The parser does C99. Everything is in the module. There's the parser (. There's the tree (. And it gives you a tree of. Require 'cast/cast' # create a parser. Parser = C: Parser.new # (optional) set some settings. Parser.pos.filename = "toy.c" # used for error messages. Treat these words as types. If there's a parse error,. Which has a nice error message in. Here's a quiz: what does ". The last 2 (the.
http://cast.rubyforge.org/


