Now building all OpenCV functions

This commit is contained in:
hbristow
2013-06-27 18:13:04 -07:00
parent d6453cf051
commit ef6327bb89
3 changed files with 34 additions and 5 deletions

View File

@@ -17,6 +17,8 @@ class ParseTree(object):
constants = []
for defn in definitions:
obj = babel.translate(defn)
if obj is None:
continue
if type(obj) is Class or obj.clss:
self.insertIntoClassTree(obj, class_tree)
elif type(obj) is Function:
@@ -54,7 +56,7 @@ class Translator(object):
# --- operators! ---
#TODO: implement operators: http://www.mathworks.com.au/help/matlab/matlab_oop/implementing-operators-for-your-class.html
if 'operator' in defn[0]:
return self.translateFunction(defn)
return
# --- constant ---
elif convertibleToInt(defn[1]):
return self.translateConstant(defn)