diff options
Diffstat (limited to 'prolog')
-rw-r--r-- | prolog/util.py | 4 |
1 files 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()} |