diff --git a/TODO b/TODO index 0c86743..e88367a 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,5 @@ # Todolist -* Improve fix recognition -* More flexible expression parsing +* Improve fix recognition (DONE) +* More flexible expression parsing (DONE) +* bug: expression can't handle -(-2) diff --git a/expression.py b/expression.py index 9164709..428cbfc 100644 --- a/expression.py +++ b/expression.py @@ -360,6 +360,10 @@ if __name__ == '__main__': exp="-2*4(12 + 1)(3-12)" test(exp) + ## Can't handle it yet!! + #exp="-(-2)" + #test(exp) + import doctest doctest.testmod()