aboutsummaryrefslogtreecommitdiff
path: root/src/boot/strap
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/strap')
-rw-r--r--src/boot/strap/ast.clisp4
-rw-r--r--src/boot/strap/parser.clisp17
2 files changed, 6 insertions, 15 deletions
diff --git a/src/boot/strap/ast.clisp b/src/boot/strap/ast.clisp
index 45c5d440..8a355ff2 100644
--- a/src/boot/strap/ast.clisp
+++ b/src/boot/strap/ast.clisp
@@ -160,10 +160,6 @@
(SETQ |$GenVarCounter| (+ |$GenVarCounter| 1))
(INTERN (CONCAT "bfVar#" (STRINGIMAGE |$GenVarCounter|)))))
-(DECLAIM (FTYPE (FUNCTION (|%List|) |%List|) |bfListOf|))
-
-(DEFUN |bfListOf| (|x|) |x|)
-
(DECLAIM (FTYPE (FUNCTION (|%Thing|) |%List|) |bfColon|))
(DEFUN |bfColon| (|x|) (LIST 'COLON |x|))
diff --git a/src/boot/strap/parser.clisp b/src/boot/strap/parser.clisp
index 79c7e905..fc811e17 100644
--- a/src/boot/strap/parser.clisp
+++ b/src/boot/strap/parser.clisp
@@ -217,13 +217,11 @@
(SETQ |$stack| (CONS (NREVERSE |$stack|) |a|))
(|bpPush|
(FUNCALL |g|
- (|bfListOf|
- (CONS (|bpPop3|)
- (CONS (|bpPop2|) (|bpPop1|)))))))
+ (CONS (|bpPop3|) (CONS (|bpPop2|) (|bpPop1|))))))
(#0='T T)))
(#0# NIL)))))
-(DEFUN |bpList| (|f| |str1| |g|)
+(DEFUN |bpList| (|f| |str1|)
(PROG (|a|)
(DECLARE (SPECIAL |$stack|))
(RETURN
@@ -239,11 +237,9 @@
(RETURN NIL))
('T 0)))
(SETQ |$stack| (CONS (NREVERSE |$stack|) |a|))
- (|bpPush|
- (FUNCALL |g|
- (CONS (|bpPop3|) (CONS (|bpPop2|) (|bpPop1|))))))
- (#0='T (|bpPush| (FUNCALL |g| (LIST (|bpPop1|)))))))
- (#0# (|bpPush| (FUNCALL |g| NIL)))))))
+ (|bpPush| (CONS (|bpPop3|) (CONS (|bpPop2|) (|bpPop1|)))))
+ (#0='T (|bpPush| (LIST (|bpPop1|))))))
+ (#0# (|bpPush| NIL))))))
(DEFUN |bpOneOrMore| (|f|)
(PROG (|a|)
@@ -1139,8 +1135,7 @@
(AND (|bpName|)
(OR (AND (|bpEqKey| 'COLON) (OR (|bpApplication|) (|bpTrap|))
(|bpPush| (|bfLocal| (|bpPop2|) (|bpPop1|))))
- (AND (|bpEqKey| 'DOT)
- (|bpList| #'|bpPrimary| 'DOT #'|bfListOf|)
+ (AND (|bpEqKey| 'DOT) (|bpList| #'|bpPrimary| 'DOT)
(|bpChecknull|)
(|bpPush| (|bfTuple| (CONS (|bpPop2|) (|bpPop1|)))))
T)))