Sha256: 4483ca7f17eb49b4082f5d87790cabad9c7744b349be094c2247626d3318decd
Contents?: true
Size: 462 Bytes
Versions: 2
Compression:
Stored size: 462 Bytes
Contents
require "take/unit/predict_match" require "take/unit/ast" require "take/unit/compiler" require "take/unit/scanner" require "take/unit/generator" module Take # A unit test. This is used to generate c files for tests. class Unit def create(file) file = File.open(file, "r") scanner = Scanner.new(file.read) compiler = Compiler.new(file.path, scanner.scan) generator = Generator.new(compiler.compile).generate end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
take-0.0.3 | lib/take/unit.rb |
take-0.0.2 | lib/take/unit.rb |