aboutsummaryrefslogtreecommitdiff
path: root/src/boot/strap/translator.clisp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-05-16 19:51:01 +0000
committerdos-reis <gdr@axiomatics.org>2011-05-16 19:51:01 +0000
commitcfda765b2e6342596df91ac9d4110f3fa95f5d75 (patch)
tree7ce481c4b5aa82371cd0a0a57fac7e2807e3dcbf /src/boot/strap/translator.clisp
parent3537b6ab6e6696fb5def82cde4c9c9e843f84ce9 (diff)
downloadopen-axiom-cfda765b2e6342596df91ac9d4110f3fa95f5d75.tar.gz
* boot/ast.boot (bfAtScope): New.
* boot/parser.boot (bpDo): Accept scoped expressions. * boot/translator.boot: Cleanup.
Diffstat (limited to 'src/boot/strap/translator.clisp')
-rw-r--r--src/boot/strap/translator.clisp59
1 files changed, 19 insertions, 40 deletions
diff --git a/src/boot/strap/translator.clisp b/src/boot/strap/translator.clisp
index cff39c1b..25f4332d 100644
--- a/src/boot/strap/translator.clisp
+++ b/src/boot/strap/translator.clisp
@@ -128,17 +128,12 @@
(COMPILE-FILE |lspFileName|))
(DEFUN BOOTTOCL (|fn| |out|)
- (PROG (|result| |callingPackage|)
- (RETURN
- (UNWIND-PROTECT
- (PROGN
- (|startCompileDuration|)
- (SETQ |callingPackage| *PACKAGE*)
- (IN-PACKAGE "BOOTTRAN")
- (SETQ |result| (BOOTTOCLLINES NIL |fn| |out|))
- (|setCurrentPackage| |callingPackage|)
- |result|)
- (|endCompileDuration|)))))
+ (UNWIND-PROTECT
+ (PROGN
+ (|startCompileDuration|)
+ (LET ((*PACKAGE* (FIND-PACKAGE "BOOTTRAN")))
+ (BOOTTOCLLINES NIL |fn| |out|)))
+ (|endCompileDuration|)))
(DEFUN BOOTCLAM (|fn| |out|)
(PROG (|$bfClamming|)
@@ -183,17 +178,12 @@
(|closeFile| |stream|)))))))
(DEFUN BOOTTOCLC (|fn| |out|)
- (PROG (|result| |callingPackage|)
- (RETURN
- (UNWIND-PROTECT
- (PROGN
- (|startCompileDuration|)
- (SETQ |callingPackage| *PACKAGE*)
- (IN-PACKAGE "BOOTTRAN")
- (SETQ |result| (BOOTTOCLCLINES NIL |fn| |out|))
- (|setCurrentPackage| |callingPackage|)
- |result|)
- (|endCompileDuration|)))))
+ (UNWIND-PROTECT
+ (PROGN
+ (|startCompileDuration|)
+ (LET ((*PACKAGE* (FIND-PACKAGE "BOOTTRAN")))
+ (BOOTTOCLCLINES NIL |fn| |out|)))
+ (|endCompileDuration|)))
(DEFUN BOOTTOCLCLINES (|lines| |fn| |outfn|)
(PROG (|a|)
@@ -538,7 +528,7 @@
(SETQ |$bpParenCount| 0)
(|bpFirstTok|)
(SETQ |found|
- (LET ((#0=#:G1364
+ (LET ((#0=#:G1365
(CATCH :OPEN-AXIOM-CATCH-POINT (|bpOutItem|))))
(COND
((AND (CONSP #0#)
@@ -1242,14 +1232,7 @@
(SETQ |s| (CDR |s|))))))
(DEFUN |bStreamPackageNull| (|s|)
- (PROG (|b| |a|)
- (RETURN
- (PROGN
- (SETQ |a| *PACKAGE*)
- (IN-PACKAGE "BOOTTRAN")
- (SETQ |b| (|bStreamNull| |s|))
- (|setCurrentPackage| |a|)
- |b|))))
+ (LET ((*PACKAGE* (FIND-PACKAGE "BOOTTRAN"))) (|bStreamNull| |s|)))
(DEFUN PSTTOMC (|string|)
(PROG (|$GenVarCounter|)
@@ -1290,17 +1273,13 @@
(T (PSTOUT (LIST |a|)) (BOOTPO)))))))))
(DEFUN PSTOUT (|string|)
- (PROG (|$GenVarCounter| |result| |callingPackage|)
+ (PROG (|$GenVarCounter|)
(DECLARE (SPECIAL |$GenVarCounter|))
(RETURN
- (PROGN
- (SETQ |callingPackage| *PACKAGE*)
- (IN-PACKAGE "BOOTTRAN")
- (SETQ |$GenVarCounter| 0)
- (SETQ |result|
- (|shoeConsoleTrees| (|shoeTransformString| |string|)))
- (|setCurrentPackage| |callingPackage|)
- |result|))))
+ (LET ((*PACKAGE* (FIND-PACKAGE "BOOTTRAN")))
+ (PROGN
+ (SETQ |$GenVarCounter| 0)
+ (|shoeConsoleTrees| (|shoeTransformString| |string|)))))))
(DEFUN |defaultBootToLispFile| (|file|)
(CONCAT (|pathBasename| |file|) ".clisp"))