Sha256: 7752b8b892ca734d573e7a076fcba88f52cb036865b72caabd3685e12c5d6e17
Contents?: true
Size: 958 Bytes
Versions: 1
Compression:
Stored size: 958 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. These # extentions provide a significant amount of functionality # for Bones and A-Darwin. require 'castaddon/node_common.rb' require 'castaddon/node_adarwin.rb' if File.exists?('lib/bones.rb') require 'castaddon/node_bones.rb' require 'castaddon/transformations.rb' require 'castaddon/type.rb' require 'castaddon/index.rb' end # 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.3.1 | lib/castaddon.rb |