Last Update: June 2020
Yuzu BASIC
An interpreter for custom BASIC-like language with dynamic typing.
Has OpenGL integrated directly as an interface for drawing graphics.
Language features common constructs such as IF/ELSE/ENDIF, FOR/NEXT, WHILE/WEND, CONTINUE, BREAK, DO/LOOP.
Language supports global functions which can return values and can be called recursively, and global multi-dimensional arrays of values.
Whole interpreter runs as a resumable state which 'yields' at certain points to prevent lockup and always allow GUI interaction.
Features syntax highlighting based on the interpreter's own tokenizer.
Uses wxWidgets to provide a GUI in which the program runs concurrently while the user is editing code.
Yuzu
is a citrus fruit.
Download
- Includes C++ sourcecode, GNU makefile for building on Linux or Windows using MSYS, and example programs.
Screenshots
life.bas, Conway's Game of Life example.
sort.bas, Insertion sort example.
voxels.bas, Simple array of coloured cubes.
maze.bas, Maze generator based on depth-first-search algorithm.
pythagoras_tree.bas, Draws a fractal using recursive function calls.
pipes2.bas, Random growing pipes inspired by a famous screensaver.