diff options
Diffstat (limited to '')
-rw-r--r-- | calc.erl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -17,6 +17,8 @@ num(Input, Num) -> %% bracket := [-] ( '(' sum '}' | num ) bracket([$-|Input]) -> case bracket(Input) of + {ok, {Tail, []}} -> + {error, {expected_number, {before, Tail}}}; {ok, {Tail, Result}} -> {ok, {Tail, -1 * Result}}; {error, Why} -> |