From 0259bf7303c622557550c1aacf9cd761d9874b31 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 30 Jan 2014 18:14:38 +0100 Subject: Some cleanups in main program --- prolog/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prolog/util.py b/prolog/util.py index 0aa0b09..b0447a6 100644 --- a/prolog/util.py +++ b/prolog/util.py @@ -74,7 +74,7 @@ def decompose(code): line.append(t) return lines, rules -# pretty-print a list of rules (no support for ; yet) +# pretty-print a list of rules def compose(lines, rules): code = '' for start, end in rules: @@ -93,7 +93,7 @@ def compose(lines, rules): code += '\n' return code -# rename variables in order of appearance +# standardize variable names in order of appearance def rename_vars(tokens, names={}): # copy names so we don't fuck it up names = {k: v for k, v in names.items()} -- cgit v1.2.1