ソースを参照

Updated comment

Taddeus Kroes 13 年 前
コミット
30c29dd55d
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/node.py

+ 2 - 1
src/node.py

@@ -328,7 +328,8 @@ class ExpressionNode(Node, ExpressionBase):
         #if self.op == OP_LOG and self[1].value in (E, DEFAULT_LOGARITHM_BASE):
         #    return 1
 
-        # Functions always have parentheses
+        # Functions always have parentheses, so return a number higher than 1
+        # to prevent graph_drawing from treating them as unary operators
         if self.op in TOKEN_MAP and TOKEN_MAP[self.op] == 'FUNCTION':
             return 2