projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79cdea4
)
Report bad expressions more clearly.
author
Taylor R Campbell
<campbell@mumble.net>
Mon, 14 Jan 2019 07:44:05 +0000
(07:44 +0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Wed, 21 Aug 2019 21:34:01 +0000
(21:34 +0000)
src/compiler/back/bitutl.scm
patch
|
blob
|
history
diff --git
a/src/compiler/back/bitutl.scm
b/src/compiler/back/bitutl.scm
index 98e6502ae706ef388ed567902ae150bdbda9b5c0..7cb117b05d55b5b5b42b15fcfc801e6e25e699e1 100644
(file)
--- a/
src/compiler/back/bitutl.scm
+++ b/
src/compiler/back/bitutl.scm
@@
-100,6
+100,10
@@
USA.
(define (evaluate expression pc-value)
(define (inner exp)
(cond ((pair? exp)
+ (if (not (and (pair? (cdr exp))
+ (pair? (cddr exp))
+ (null? (cdddr exp))))
+ (error "evaluate: bad expression:" exp))
((find-operator (car exp))
(inner (cadr exp))
(inner (caddr exp))))