Sha256: 6ae8cc00ea2b399b2581aa9dee46702cc0a093f20daf2429299f7232a59f1f51
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
# Include the CAST gem, which provides a C99-parser. The gem # is based on an intermediate representation in the form of # an abstract syntax tree (AST). The gem provides C to AST # and AST to C. module C end require 'rubygems' require 'cast' # Include the extentions to the CAST gem provided by the author # of Bones. These extentions provide a significant amount of # functionality for Bones itself. require 'castaddon/node.rb' require 'castaddon/type.rb' require 'castaddon/index.rb' # Modify the NodeArray and NodeChain lists to output correct # code when printed to a file. class C::NodeList # Modify the 'to_s' method to output correct code when printed # to a file. Originally, it would separate instances of the list # with a ','. Instead, a newline command is added. def to_s self.join("\n") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bones-compiler-1.1.0 | lib/castaddon.rb |