diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-05-11 10:58:22 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-08-11 14:26:03 +0200 |
commit | 3d9f6f564008b930afff9ba6b32d08bc267ebb3b (patch) | |
tree | bbcecc88d6dda655fe8f76932a5a8639dec87169 | |
parent | 162bb2c59b9b3faa7a161e192c1821602d2ab326 (diff) |
Disable parser generation
The parser is currently unused.
-rw-r--r-- | prolog/util.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/prolog/util.py b/prolog/util.py index 3130ea5..7e8adb2 100644 --- a/prolog/util.py +++ b/prolog/util.py @@ -38,7 +38,6 @@ class Token(namedtuple('Token', ['type', 'val', 'pos', 'rule', 'part', 'stop'])) self.stop if stop is None else stop) from .lexer import lexer, operators -from .parser import parser # Return a list of tokens in [text]. def tokenize(text): @@ -143,11 +142,6 @@ def compose(tokens): prev = t return code.strip() -# Parse [text] into an AST. -def parse(text): - tree = parser.parse(text) - return tree - # Rename variables in [tokens] to A0, A1, A2,… in order of appearance. def rename_vars(tokens, names=None): if names is None: |