mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-10-06 00:47:37 +00:00
intermediate check in; integrating new parser and tests thereof yet in progress
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@93 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
+7
-1
@@ -1,4 +1,10 @@
|
||||
$here = File.dirname __FILE__
|
||||
|
||||
require 'rubygems'
|
||||
require 'treetop'
|
||||
|
||||
require "#{$here}/cmock_function_prototype_node_classes"
|
||||
require "#{$here}/cmock_function_prototype_parser"
|
||||
require "#{$here}/cmock_header_parser"
|
||||
require "#{$here}/cmock_generator"
|
||||
require "#{$here}/cmock_file_writer"
|
||||
@@ -26,7 +32,7 @@ class CMock
|
||||
path = File.dirname(src)
|
||||
@cfg.set_path(path)
|
||||
|
||||
cm_parser = CMockHeaderParser.new(File.read(src), @cfg)
|
||||
cm_parser = CMockHeaderParser.new(CMockFunctionPrototypeParser.new, File.read(src), @cfg)
|
||||
cm_unityhelper = CMockUnityHelperParser.new(@cfg)
|
||||
cm_writer = CMockFileWriter.new(@cfg)
|
||||
cm_gen_utils = CMockGeneratorUtils.new(@cfg, {:unity_helper => cm_unityhelper})
|
||||
|
||||
Reference in New Issue
Block a user