瀏覽代碼

Fixed some typo's in code comments.

Sander Mathijs van Veen 14 年之前
父節點
當前提交
7aee3e1caf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/parser.py

+ 2 - 2
src/parser.py

@@ -80,7 +80,7 @@ class Parser(BisonParser):
         """
         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
         # support those. This workaround will replace:
         #   - ")(" with ")*(".
@@ -106,7 +106,7 @@ class Parser(BisonParser):
 
             # If all characters on the right are numbers. e.g. "a4", the
             # 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 != ')' \
                     and all(map(lambda x: 48 <= ord(x) < 58, list(right))):
                 return '%s^%s' % (left, right)