Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
7aee3e1c
Commit
7aee3e1c
authored
Dec 11, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some typo's in code comments.
parent
3ffe9be2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/parser.py
src/parser.py
+2
-2
No files found.
src/parser.py
View file @
7aee3e1c
...
@@ -80,7 +80,7 @@ class Parser(BisonParser):
...
@@ -80,7 +80,7 @@ class Parser(BisonParser):
"""
"""
import
re
import
re
# TODO: remove this quick preproces
ing hack. This hack enabled
# TODO: remove this quick preproces
sing hack. This hack enables
# concatenated expressions, since the grammar currently does not
# concatenated expressions, since the grammar currently does not
# support those. This workaround will replace:
# support those. This workaround will replace:
# - ")(" with ")*(".
# - ")(" with ")*(".
...
@@ -106,7 +106,7 @@ class Parser(BisonParser):
...
@@ -106,7 +106,7 @@ class Parser(BisonParser):
# If all characters on the right are numbers. e.g. "a4", the
# If all characters on the right are numbers. e.g. "a4", the
# expression implies exponentiation. Make sure ")4" is not
# expression implies exponentiation. Make sure ")4" is not
# converted into an exponentiation, because that'
s
multiplic
i
ation
.
# converted into an exponentiation, because that'
s
multiplication
.
if
left
!=
')'
\
if
left
!=
')'
\
and
all
(
map
(
lambda
x
:
48
<=
ord
(
x
)
<
58
,
list
(
right
))):
and
all
(
map
(
lambda
x
:
48
<=
ord
(
x
)
<
58
,
list
(
right
))):
return
'%s^%s'
%
(
left
,
right
)
return
'%s^%s'
%
(
left
,
right
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment