Tiny BASIC Web

—✵—

Tiny BASIC Web, version 0.1
©2025 by Mark Damon Hughes
cyberhole.online/basic/
Text licensed as CC BY-NC-SA Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license
Code licensed as BSD, see LICENSE.txt

Introduction

Tiny BASIC Web (TBW hereafter) is an interpreted, interactive BASIC which can be embedded in a web page.

Level 1 will support only number variables A-Z, string constants, no labels or optional items. RND will be a pseudo-variable, not a function.

Level 2 is as below.

Embedding

<html>
<head>
<title>TinyBasicWeb</title>
<link href='tbasicweb.css' rel='stylesheet' type='text/css' />
<script src='js/tbasicweb.js'></script>
</head>
<body onload='tbasicwebinit("terminal", [64,24], [14,24], "myprog.bas")'>
<div id='terminal'></div>
</body>
</html>

To pack the canvas size correctly, pick sizes you like, run it. The browser console will show Actual charsize X,Y. Then change the ones you give in the function, and reload. My initial guess of [64,24], [14,24] produced Actual charsize=14.40234375, so I changed width to 15.

Syntax

Statements

Interactive Statements

Disk Operating System Statements

(L2)

Functions

(L2) all except RND

EOF