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