Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CICD 2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bilel El Yaagoubi
CICD 2022
Commits
2072f264
Commit
2072f264
authored
2 years ago
by
Bilel El Yaagoubi
Browse files
Options
Downloads
Patches
Plain Diff
ok
parent
33dd3c8f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#46218
failed
2 years ago
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
calculator/calculator.py
+2
-2
2 additions, 2 deletions
calculator/calculator.py
with
2 additions
and
2 deletions
calculator/calculator.py
+
2
−
2
View file @
2072f264
...
@@ -18,7 +18,7 @@ class Calculator:
...
@@ -18,7 +18,7 @@ class Calculator:
operators
=
STANDARD_OPERATORS
operators
=
STANDARD_OPERATORS
self
.
operators
=
operators
self
.
operators
=
operators
def
tokenize
(
self
,
line
:
str
)
->
list
[
Token
]
:
def
tokenize
(
self
,
line
:
str
):
"""
"""
Tokenize an expression into a list of tokens.
Tokenize an expression into a list of tokens.
"""
"""
...
@@ -34,7 +34,7 @@ class Calculator:
...
@@ -34,7 +34,7 @@ class Calculator:
raise
ValueError
(
f
"
Invalid token
{
token
}
"
)
from
exc
raise
ValueError
(
f
"
Invalid token
{
token
}
"
)
from
exc
return
tokens
return
tokens
def
parse
(
self
,
tokens
:
list
[
Token
]
)
->
Expression
:
def
parse
(
self
,
tokens
)
->
Expression
:
"""
"""
Parse a list of tokens into an ordered expression.
Parse a list of tokens into an ordered expression.
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment