# Category:UBasic/4tH

**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.

### 2

### A

### B

### C

### D

### E

### F

### G

### H

### L

### M

### N

### P

- Pangram checker
- Pascal's triangle
- Periodic table
- Pig the dice game
- Price fraction
- Primality by trial division
- Priority queue
- Program name
- Program termination
- Proper divisors
- Pseudo-random numbers/Combined recursive generator MRG32k3a
- Pseudo-random numbers/Middle-square method
- Pseudo-random numbers/PCG32
- Pythagoras tree

### R

### S

- Sailors, coconuts and a monkey problem
- Sequence of primes by trial division
- Show the epoch
- Sierpinski carpet
- Sierpinski triangle
- Sorting algorithms/Bubble sort
- Sorting Algorithms/Circle Sort
- Sorting algorithms/Cocktail sort
- Sorting algorithms/Comb sort
- Sorting algorithms/Gnome sort
- Sorting algorithms/Heapsort
- Sorting algorithms/Insertion sort
- Sorting algorithms/Pancake sort
- Sorting algorithms/Quicksort
- Sorting algorithms/Radix sort
- Sorting algorithms/Selection sort
- Sorting algorithms/Shell sort
- Sorting algorithms/Stooge sort
- Spiral matrix
- Stem-and-leaf plot
- String append
- String comparison
- String concatenation
- Subleq
- Subtractive generator