diff options
| author | William Hergès <william@herges.fr> | 2025-11-09 13:23:05 +0100 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-11-09 13:23:05 +0100 |
| commit | 3b0cc79dee76244da55d2326cc4244a384d85e44 (patch) | |
| tree | 7a2819f658fe987f942633ad82997a75850e16ef /lib/main.ex | |
| parent | 8f9730d89e66ab1cbf08cbc0dea2a429d135e0da (diff) | |
feat(calc)): supports factorial
Diffstat (limited to 'lib/main.ex')
| -rw-r--r-- | lib/main.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/main.ex b/lib/main.ex index 99c25ca..5e7cf55 100644 --- a/lib/main.ex +++ b/lib/main.ex @@ -11,6 +11,7 @@ defmodule ElixirMathParser.Main do case ElixirMathParser.process_tree(tree) do {:ok, _} -> :ok + {:error, line, reason} -> reason <> " (line " <> to_string(line) <> ")" {:error, reason} -> reason end end |
