summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-05-11 10:58:22 +0200
committerAleš Smodiš <aless@guru.si>2015-08-11 14:26:03 +0200
commit3d9f6f564008b930afff9ba6b32d08bc267ebb3b (patch)
treebbcecc88d6dda655fe8f76932a5a8639dec87169
parent162bb2c59b9b3faa7a161e192c1821602d2ab326 (diff)
Disable parser generation
The parser is currently unused.
-rw-r--r--prolog/util.py6
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: