mirror of
https://github.com/samsonjs/sectorlisp.git
synced 2026-03-25 09:05:48 +00:00
Fix bugs
This commit is contained in:
parent
aa43e770c3
commit
d7f5c287eb
1 changed files with 2 additions and 3 deletions
5
lisp.js
5
lisp.js
|
|
@ -51,7 +51,7 @@ function Cdr(x) {
|
|||
if (x < 0) {
|
||||
return Get(x + 1);
|
||||
} else {
|
||||
Throw(x + 1);
|
||||
Throw(x);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -157,7 +157,7 @@ function Copy(x, m, k) {
|
|||
|
||||
function Evlis(m, a) {
|
||||
return m ? Cons(Eval(Car(m), a),
|
||||
Evlis(Cdr(m), a)) : 0;
|
||||
Evlis(Cdr(m), a)) : m;
|
||||
}
|
||||
|
||||
function Pairlis(x, y, a) {
|
||||
|
|
@ -257,7 +257,6 @@ ReadChar() {
|
|||
dx = c;
|
||||
return t;
|
||||
} else {
|
||||
PrintChar('\n');
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue