diff --git a/assets/basic.js b/assets/basic.js index b5cb60e..d93f2b4 100644 --- a/assets/basic.js +++ b/assets/basic.js @@ -1090,6 +1090,11 @@ if no arg text were given (e.g. "10 NEXT"), args will have zero length return akku; }); }, +/* GOTO and GOSUB won't work but that's probably the best...? */ +"DO" : function(lnum, args) { + //return resolve(args[args.length - 1]); + return undefined; +}, "OPTIONDEBUG" : function(lnum, args) { return oneArgNum(lnum, args, (lh) => { if (lh != 0 && lh != 1) throw lang.syntaxfehler(line); diff --git a/assets/dotest.bas b/assets/dotest.bas new file mode 100644 index 0000000..8265950 --- /dev/null +++ b/assets/dotest.bas @@ -0,0 +1,3 @@ +10 DEFUN KA(X)=IF X>2 THEN DO(PRINT("HAI");PRINT(X)) ELSE DO(PRINT("BYE");PRINT(X)) +20 INPUT N +30 KA(N) diff --git a/assets/maptest.bas b/assets/maptest.bas deleted file mode 100644 index e69de29..0000000