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:
mkarlesky
2009-05-14 05:18:45 +00:00
parent 71729e1b65
commit 500c30a5ce
5 changed files with 237 additions and 465 deletions
+7 -1
View File
@@ -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})