Category:UBasic/4tH: Difference between revisions

From Rosetta Code
Content added Content deleted
mNo edit summary
m (Added a few tt-tags)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
*<tt>DO, LOOP, UNTIL, WHILE, CONTINUE</tt> and <tt>BREAK</tt> supported;
*<tt>DO, LOOP, UNTIL, WHILE, CONTINUE</tt> and <tt>BREAK</tt> supported;
*Multi line <tt>IF..THEN..ELSE..ENDIF</tt> supported;
*Multi line <tt>IF..THEN..ELSE..ENDIF</tt> supported;
*Parameter passing supported by <tt>GOSUB</tt>, <tt>RETURN</tt> and <tt>FUNC()</tt> extensions;
*Parameter passing supported by <tt>GOSUB</tt>, <tt>RETURN</tt>, <tt>PROC</tt> and <tt>FUNC()</tt> extensions;
*Local variables supported, both initialized and uninitialized;
*Local variables supported, both initialized and uninitialized;
*Alphanumeric labels supported;
*Alphanumeric labels supported;
*String support with automatic ''and'' manual "garbage collection";
*Exception handling, using <tt>TRY()</tt> and <tt>RAISE</tt>;
*Text file support with read, write and append modes;
*Input parsing, using <tt>TOK()</tt> and <tt>SKIP</tt>;
*"Structured Basic" commenting style.
*"Structured Basic" commenting style.


Line 12: Line 16:
* [http://sourceforge.net/p/forth-4th/wiki/uBasic%20and%20Tiny%20BASIC/ uBasic and Tiny BASIC]
* [http://sourceforge.net/p/forth-4th/wiki/uBasic%20and%20Tiny%20BASIC/ uBasic and Tiny BASIC]
* [http://sourceforge.net/p/forth-4th/wiki/Basically%20a%20touch%20of%20Forth/ Basically a touch of Forth]
* [http://sourceforge.net/p/forth-4th/wiki/Basically%20a%20touch%20of%20Forth/ Basically a touch of Forth]
* [https://sourceforge.net/p/forth-4th/wiki/The%20strange%20strings%20of%20uBasic/ The strange strings of uBasic]

Latest revision as of 17:18, 25 January 2023

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";
  • Exception handling, using TRY() and RAISE;
  • Text file support with read, write and append modes;
  • Input parsing, using TOK() and SKIP;
  • "Structured Basic" commenting style.

See also:

Pages in category "UBasic/4tH"

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