Category:UBasic/4tH: Difference between revisions

From Rosetta Code
Content added Content deleted
(String support added)
m (Added file support)
Line 8: Line 8:
*Alphanumeric labels supported;
*Alphanumeric labels supported;
*String support with automatic ''and'' manual "garbage collection";
*String support with automatic ''and'' manual "garbage collection";
* Text file support with read, write and append modes.
*"Structured Basic" commenting style.
*"Structured Basic" commenting style.



Revision as of 12:25, 12 August 2022

uBasic (not to be confused with UBASIC) is an integer Basic interpreter in the tradition of Tiny BASIC, with which it is largely compatible. This version is entirely written in 4tH, some bugs have been removed and several additional features have been added, like user stack support and structured programming:

  • PUSH, POP() and TOS() can be used to emulate DATA statements, pass parameters to subroutines or make recursive subroutines;
  • DO, LOOP, UNTIL, WHILE, CONTINUE and BREAK supported;
  • Multi line IF..THEN..ELSE..ENDIF supported;
  • Parameter passing supported by GOSUB, RETURN, PROC and FUNC() extensions;
  • Local variables supported, both initialized and uninitialized;
  • Alphanumeric labels supported;
  • String support with automatic and manual "garbage collection";
  • Text file support with read, write and append modes.
  • "Structured Basic" commenting style.

See also:

Pages in category "UBasic/4tH"

The following 164 pages are in this category, out of 164 total.