Integrate the REPL, now WASM32 works, just some functions missing.
This commit is contained in:
+2
-10
@@ -70,6 +70,7 @@
|
|||||||
.input {
|
.input {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
white-space: pre;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -117,16 +118,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function executeCommand(command) {
|
function executeCommand(command) {
|
||||||
switch (command) {
|
return window.hel.hel_command(command);
|
||||||
case "help":
|
|
||||||
return "Available commands: help, date, ls";
|
|
||||||
case "date":
|
|
||||||
return hel.ok_add(1, 2).toString();
|
|
||||||
case "ls":
|
|
||||||
return "file1.txt file2.txt file3.txt";
|
|
||||||
default:
|
|
||||||
return "Command not found";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user