console messages
This commit is contained in:
parent
7e71612592
commit
a92f19180e
2 changed files with 6 additions and 4 deletions
|
|
@ -12,9 +12,9 @@ html {
|
|||
background: rgb(255,241,219);
|
||||
position: fixed;
|
||||
right: 1px;
|
||||
bottom: 4em;
|
||||
bottom: 8em;
|
||||
width: 30em;
|
||||
height: 90%;
|
||||
height: 70%;
|
||||
border: 2px solid darkgray;
|
||||
border-radius: 10px;
|
||||
z-index: 0;
|
||||
|
|
@ -51,10 +51,11 @@ html {
|
|||
right: 1px;
|
||||
bottom: 0;
|
||||
width: 40em;
|
||||
height: 2em;
|
||||
height: 6em;
|
||||
border: 2px solid darkgray;
|
||||
border-radius: 10px;
|
||||
z-index: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.multiline {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,8 @@ export function interpret(init_env, code) {
|
|||
|
||||
visitPrintStatement: (expression) => {
|
||||
let value = THIS.evaluate(expression);
|
||||
log_console.innerText = THIS.stringify(value);
|
||||
log_console.innerText += THIS.stringify(value) +"\n";
|
||||
log_console.scrollTop = log_console.scrollHeight;
|
||||
},
|
||||
|
||||
visitCallStatement: (fun, argList) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue