Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • admins
  • main
  • tp1
  • tp1-correction
  • tp2
  • tp2-correction
  • tp3
7 results

Target

Select target project
  • octolel/cicd
  • bruliette/cicd-2022-juju
  • desjardins/cicd
  • greets/cicd
  • 2022faureal/cicd
  • 2022flamama/cicd
  • 2022thirionma/cicd
  • siestetactique/cicd
  • 2021khlauthu/cicd
  • aubinx/cicd
  • 2022jacquinar/cicd
  • gravlax/cicd
12 results
Select Git revision
  • admins
  • main
  • tp1
  • tp1-correction
  • tp2
  • tp2-correction
  • tp3
7 results
Show changes
Commits on Source (2)
......@@ -18,7 +18,7 @@ class Calculator:
operators = STANDARD_OPERATORS
self.operators = operators
def tokenize(self, line: str) -> list[Token]:
def tokenize(self, line: str):
tokens = []
for token in line.split():
if token in self.operators:
......@@ -31,7 +31,7 @@ class Calculator:
raise ValueError(f"Invalid token {token}") from exc
return tokens
def parse(self, tokens: list[Token]) -> Expression:
def parse(self, tokens) -> Expression:
"""
Parse a list of tokens into an ordered expression.
"""
......