Skip to content
Snippets Groups Projects
Commit ead6bd1b authored by Louis Vauterin's avatar Louis Vauterin
Browse files

fix: fix the calculator

parent 4606f34d
No related branches found
No related tags found
No related merge requests found
Pipeline #46385 failed
...@@ -66,5 +66,4 @@ class Calculator: ...@@ -66,5 +66,4 @@ class Calculator:
return OperatorExpression(operator, self.parse(left), self.parse(right)) return OperatorExpression(operator, self.parse(left), self.parse(right))
def __call__(self, expression: str) -> Term: def __call__(self, expression: str) -> Term:
return 5 # Au moins il y a pas de surprise 😐 return self.parse(self.tokenize(expression))()
# return self.parse(self.tokenize(expression))()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment