projects
/
jscl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Basic SETF implementation
[jscl.git]
/
ecmalisp.html
diff --git
a/ecmalisp.html
b/ecmalisp.html
index
9610883
..
cafc7d4
100644
(file)
--- a/
ecmalisp.html
+++ b/
ecmalisp.html
@@
-71,29
+71,32
@@
jqconsole.RegisterMatching('(', ')', 'parents');
lisp.write = function(str){
jqconsole.RegisterMatching('(', ')', 'parents');
lisp.write = function(str){
- jqconsole.Write(str, 'jqconsole-output');
+ jqconsole.Write(str, 'jqconsole-output', false);
return str;
}
var startPrompt = function () {
// Start the prompt with history enabled.
return str;
}
var startPrompt = function () {
// Start the prompt with history enabled.
- jqconsole.Write(lisp.evalString(id, '(CL:PACKAGE-NAME CL:*PACKAGE*)') + '> ', 'jqconsole-prompt');
+ jqconsole.Write(lisp.evalString(pv, '(CL:PACKAGE-NAME CL:*PACKAGE*)') + '> ', 'jqconsole-prompt');
jqconsole.Prompt(true, function (input) {
// Output input with the class jqconsole-return.
if (input[0] != ','){
try {
jqconsole.Prompt(true, function (input) {
// Output input with the class jqconsole-return.
if (input[0] != ','){
try {
- jqconsole.Write(lisp.print(id, lisp.evalString(id, input)) + '\n', 'jqconsole-return');
+ var vs = lisp.evalString(mv, input);
+ for (var i=0; i<vs.length; i++){
+ jqconsole.Write(lisp.print(pv, vs[i]) + '\n', 'jqconsole-return');
+ }
} catch(error) {
jqconsole.Write('ERROR: ' + (error.message || error) + '\n', 'jqconsole-error');
}
} else {
} catch(error) {
jqconsole.Write('ERROR: ' + (error.message || error) + '\n', 'jqconsole-error');
}
} else {
- jqconsole.Write(lisp.compileString(id, input.slice(1)) + '\n', 'jqconsole-return');
+ jqconsole.Write(lisp.compileString(pv, input.slice(1)) + '\n', 'jqconsole-return');
}
// Restart the prompt.
startPrompt();
}, function(input){
try {
}
// Restart the prompt.
startPrompt();
}, function(input){
try {
- lisp.read(id, input[0]==','? input.slice(1): input);
+ lisp.read(pv, input[0]==','? input.slice(1): input);
} catch(error) {
return 0;
}
} catch(error) {
return 0;
}