Explorar o código

Added square root operator.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
3ba4a7a417
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/node.py

+ 2 - 0
src/node.py

@@ -30,6 +30,7 @@ OP_MOD = 7
 OP_INT = 8
 OP_EXPAND = 9
 OP_COMMA = 10
+OP_SQRT = 11
 
 
 TYPE_MAP = {
@@ -48,6 +49,7 @@ OP_MAP = {
         'mod': OP_MOD,
         'int': OP_INT,
         'expand': OP_EXPAND,
+        'sqrt': OP_SQRT,
         ',': OP_COMMA,
         }