Commit 8ec15bb5 authored by Chris Jewell's avatar Chris Jewell
Browse files

Implemented Binary and Unary op forwarding. This still needs type checking and/or type promotion.

parent dd8237fe
......@@ -128,8 +128,12 @@ class SymbolResolver(ScopedWalker):
def onExit_Float(self, node):
node.type = self.current_scope.resolve('float')
def onExit_Expr(self, node):
def onExit_BinaryExpr(self, node):
node.type = node.children[0].type
def onExit_UnaryExpr(self, node):
node.type = node.children[0].type
RandomVariableList = namedtuple("RandomVariableList", ['free', 'observed'])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment