summaryrefslogtreecommitdiff
path: root/prolog
diff options
context:
space:
mode:
Diffstat (limited to 'prolog')
-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: