Skip to content

Commit

Permalink
use new API of CodeGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed May 13, 2020
1 parent c90e3ac commit ffd5f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m2cgen/interpreters/ruby/interpreter.py
Expand Up @@ -42,7 +42,7 @@ def interpret(self, expr):
os.path.dirname(__file__), "linear_algebra.rb")
self._cg.prepend_code_lines(utils.get_file_content(filename))

return self._cg.code
return self._cg.finalize_and_get_generated_code()

def interpret_bin_num_expr(self, expr, **kwargs):
if expr.op == ast.BinNumOpType.DIV:
Expand Down

0 comments on commit ffd5f0a

Please sign in to comment.