From c070de6345fd03591e5f06961580b119de22b389 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 4 Nov 2011 18:50:38 +0100 Subject: [PATCH] psyntax: resolve-identifier refactor * module/ice-9/psyntax.scm (id-var-name): Add a nice long comment. (lookup): Remove, as it is no longer used. (resolve-identifier): New helper, replaces most uses of id-var-name then `lookup'. (syntax-type, syntax, set!, fluid-let-syntax): Adapt to use resolve-identifier. (free-id=?): Adapt to id-var-name returning syntax objects. --- module/ice-9/psyntax.scm | 605 +++++++++++++++++++++------------------ 1 file changed, 323 insertions(+), 282 deletions(-) diff --git a/module/ice-9/psyntax.scm b/module/ice-9/psyntax.scm index 3b2951ff9..d09415481 100644 --- a/module/ice-9/psyntax.scm +++ b/module/ice-9/psyntax.scm @@ -486,7 +486,7 @@ ;; global (assumed global variable) and displaced-lexical (see below) ;; do not show up in any environment; instead, they are fabricated by - ;; lookup when it finds no other bindings. + ;; resolve-identifier when it finds no other bindings. ;; ::= ((