diff options
author | dos-reis <gdr@axiomatics.org> | 2011-04-30 22:35:55 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-04-30 22:35:55 +0000 |
commit | 07fcfb463c0ea0ef40cc8886ee12c4dd20d9d759 (patch) | |
tree | 53c657a088647774a6387fc010ee7097f1bd7b26 /src/boot/strap/ast.clisp | |
parent | 42cf0984b569e49060252e536c0c7e7aee469873 (diff) | |
download | open-axiom-07fcfb463c0ea0ef40cc8886ee12c4dd20d9d759.tar.gz |
* boot/ast.boot (bfAppend): Write in full.
* interp/ptrees.boot (pfAppend): Likewise.
Diffstat (limited to 'src/boot/strap/ast.clisp')
-rw-r--r-- | src/boot/strap/ast.clisp | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/boot/strap/ast.clisp b/src/boot/strap/ast.clisp index 67d31787..081dab12 100644 --- a/src/boot/strap/ast.clisp +++ b/src/boot/strap/ast.clisp @@ -194,9 +194,32 @@ (DEFUN |bfPile| (|part|) |part|) -(DECLAIM (FTYPE (FUNCTION ((|%List| |%Form|)) |%Form|) |bfAppend|)) +(DECLAIM (FTYPE (FUNCTION ((|%List| (|%List| (|%List| |%Form|)))) + (|%List| |%Form|)) + |bfAppend|)) -(DEFUN |bfAppend| (|x|) (APPLY #'APPEND |x|)) +(DEFUN |bfAppend| (|ls|) + (PROG (|p| |r| |l|) + (RETURN + (COND + ((NOT (AND (CONSP |ls|) + (PROGN + (SETQ |l| (CAR |ls|)) + (SETQ |ls| (CDR |ls|)) + T))) + NIL) + (T (SETQ |r| (|copyList| |l|)) (SETQ |p| |r|) + (LOOP + (COND + ((NOT (AND (CONSP |ls|) + (PROGN + (SETQ |l| (CAR |ls|)) + (SETQ |ls| (CDR |ls|)) + T))) + (RETURN |r|)) + ((NULL |l|) NIL) + (T (RPLACD (|lastNode| |p|) (|copyList| |l|)) + (SETQ |p| (CDR |p|)))))))))) (DECLAIM (FTYPE (FUNCTION ((|%List| |%Form|) |%Form|) |%Form|) |bfColonAppend|)) |