From 91201f1e3037f126a9f343594bd94640c4e5f8ef Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Wed, 9 Dec 2015 05:06:21 +0100 Subject: [PATCH] Remove old TODO and add new one. Identifiers can be equal if they belong to different syntactic scopes. That will allow better reuse and less creation of new identifiers, most notably as function and event parameter names. The implementation would require a stack of counters where the current value is pushed when entering a new scope, and popped when exiting, rather than using a single counter for the whole program. --- lslopt/lslrenamer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lslrenamer.py b/lslopt/lslrenamer.py index 4de33c7..6392725 100644 --- a/lslopt/lslrenamer.py +++ b/lslopt/lslrenamer.py @@ -23,7 +23,7 @@ # # A side effect of this change is that the script becomes unreadable gibberish. -# TODO: Rename locals to loc_ rather than random names. +# TODO: Make a new counter per scope. class renamer(object): CharSet1 = '_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'