|
@@ -82,7 +82,10 @@ class CodeBox {
|
|
* Transforms the textual code box into usable matrix
|
|
* Transforms the textual code box into usable matrix
|
|
*/
|
|
*/
|
|
ParseCodeBox() {
|
|
ParseCodeBox() {
|
|
|
|
+ // Reset some field for a clean run
|
|
this.box = [];
|
|
this.box = [];
|
|
|
|
+ this.pointer = [0, 0];
|
|
|
|
+ this.outputDOM.value = "";
|
|
|
|
|
|
const cbRaw = this.codeBoxDOM.value;
|
|
const cbRaw = this.codeBoxDOM.value;
|
|
const rows = cbRaw.split("\n").filter((r) => r.length);
|
|
const rows = cbRaw.split("\n").filter((r) => r.length);
|