UBasic/4tH: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Added local variables)
mNo edit summary
Line 1: Line 1:
{{implementation|BASIC}}'''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:
{{implementation|BASIC}}'''uBasic/4tH''' (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:


*<tt>PUSH, POP()</tt> and <tt>TOS()</tt> can be used to emulate <tt>DATA</tt> statements, pass parameters to subroutines or make recursive subroutines;
*<tt>PUSH, POP()</tt> and <tt>TOS()</tt> can be used to emulate <tt>DATA</tt> statements, pass parameters to subroutines or make recursive subroutines;

Revision as of 21:00, 9 June 2014

UBasic/4tH is an implementation of BASIC. Other implementations of BASIC.

uBasic/4tH (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;
  • Local variables supported;
  • Alphanumeric labels supported;
  • "Structured Basic" commenting style.