Commits

masklinn committed 1d538ed

Implement third prefix numerical operator in data model (call right method)

Comments (0)

Files changed (1)

             return py.evaluate(expr.first, context)
                 .__getattribute__(expr.second.value);
         // numerical operators
+        case '~':
+            return (py.evaluate(expr.first, context)).__invert__();
         case '+':
             if (!expr.second) {
                 return (py.evaluate(expr.first, context)).__pos__();