dkl9 commited on 2023-198 14:54:43
Showing 3 changed files, with 10 additions and 8 deletions.
| ... | ... |
@@ -302,8 +302,10 @@ |
| 302 | 302 |
<div id="iol"></div> |
| 303 | 303 |
<script type="module"> |
| 304 | 304 |
/*<![CDATA[*/ |
| 305 |
+ import {ioLog} from "./rtensor_common.js";
|
|
| 305 | 306 |
import {BUILTIN_FUNCS} from "./rtensor_lib.js";
|
| 306 | 307 |
import {TokenStream, NewParser} from "./maths_parser.js";
|
| 308 |
+ import {NUMERIC_TYPES} from "./maths_ast.js";
|
|
| 307 | 309 |
const calcVars = Object.fromEntries(Object.entries(BUILTIN_FUNCS)); |
| 308 | 310 |
calcVars["_"] = calcVars["null"]; |
| 309 | 311 |
const pastInps = []; |
| ... | ... |
@@ -350,13 +352,6 @@ |
| 350 | 352 |
} |
| 351 | 353 |
} |
| 352 | 354 |
|
| 353 |
- function ioLog(t) {
|
|
| 354 |
- const outp = document.createElement("p");
|
|
| 355 |
- outp.innerText = t; |
|
| 356 |
- iol.append(outp); |
|
| 357 |
- return outp; |
|
| 358 |
- } |
|
| 359 |
- |
|
| 360 | 355 |
function evalInp() {
|
| 361 | 356 |
let disp; |
| 362 | 357 |
let perr = false; |
| ... | ... |
@@ -1,6 +1,6 @@ |
| 1 | 1 |
"use strict"; |
| 2 | 2 |
|
| 3 |
-import {fts} from "./rtensor_common.js";
|
|
| 3 |
+import {fts, ioLog} from "./rtensor_common.js";
|
|
| 4 | 4 |
import {Complex} from "./types/complex.js";
|
| 5 | 5 |
import {MathsFunc} from "./types/mathsfunc.js";
|
| 6 | 6 |
import {AST, vecOp, NumericType, anyNaN} from "./maths_ast.js";
|
| 7 | 7 |