Fixed some typo's in code comments.

parent 3ffe9be2
...@@ -80,7 +80,7 @@ class Parser(BisonParser): ...@@ -80,7 +80,7 @@ class Parser(BisonParser):
""" """
import re import re
# TODO: remove this quick preprocesing hack. This hack enabled # TODO: remove this quick preprocessing 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 multipliciation. # 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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment