nubasic  rel_1.52
About: nuBASIC is an implementation of an interpreter of the BASIC programming language (written in C++ for educational purposes).
  Fossies Dox: nubasic-rel_1.52.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

nubasic Documentation

Some Fossies usage hints in advance:

  1. To see the Doxygen generated documentation please click on one of the items in the steelblue colored "quick index" bar above or use the side panel at the left which displays a hierarchical tree-like index structure and is adjustable in width.
  2. If you want to search for something by keyword rather than browse for it you can use the client side search facility (using Javascript and DHTML) that provides live searching, i.e. the search results are presented and adapted as you type in the Search input field at the top right.
  3. Doxygen doesn't incorporate all member files but just a definable subset (basically the main project source code files that are written in a supported language). So to search and browse all member files you may visit the Fossies nubasic-rel_1.52.tar.gz contents page and use the Fossies standard member browsing features (also with source code highlighting and additionally with optional code folding).


nuBASIC is an implementation of an interpreter of the BASIC programming language


nuBASIC has been designed and implemented mainly for educational purposes both for C++ developers that can deal with a non-trivial example of modern C++ programming and for beginners, which may get hooked on programming.

It is suitable for simple games, educational or small business programs.

Anyone who has previously worked with other BASIC languages will quickly become accustomed to nuBASIC. Large sections of the basic constructs of nuBASIC are compatible with other BASIC dialects.

nuBASIC is also very simple. It is an excellent tool for teaching programming to a complete beginner, despite this, it has all the features of a modern programming language.

It allows you to write both classic BASIC programs (which use line numbers and GoTo or GoSub control structures) and procedure oriented programs, based on procedural programming paradigm.


  • Free and Open Source (distributed under GPLv2/MIT License)
  • Easy to use and simple enough for 8-year-old-child to understand
  • Fully-developed procedural programming language
  • IDE for Windows and Linux (GTK+2)
  • Multiplatform. Runs on 32-bit and 64-bit Linux/Windows/MacOS
  • Built-in help
  • Documented (English and Italian Guides)
  • Examples include Tetris, Mine Hunter, Breakout, Calculator, TicTacToe
  • Tiny version is suitable for embedded systems


nuBASIC IDE (Integrated Development Environment, for Windows and Linux/GTK+2) includes a syntax highlighting editor and debugger.

IDE provides comprehensive facilities to programmers for software development, like the syntax highlighting, which is the ability to recognize keywords and display them in different colors. Debugger lets you place breakpoints in your source code, add field watches, step through your code, run into procedures, take snapshots and monitor execution as it occurs.

C++ Compiler Prerequisites

To compile nuBASIC you will need a compiler supporting modern C++ (C++17 extensions have been enabled and any further refactoring will be replacing the existing C++11/14 code by using new language features, where applicable). Tested on latest versions GCC, Microsoft Visual C++, (Apple) Clang.

Windows Installation Prerequisites

To install successfully nuBASIC (32/64 bit - packages including editor) the following software component is required on the installation computer:

  • Visual C++ Redistributable Packages are required.

Linux Installation Prerequisites

To install nuBASIC (full version) the following software components are required on the installation system:

  • X11 - X Windowing System (including xterm, xmessage)
  • Gtk+ 2.0
  • aplay (which is generally part of most basic Linux distributions).


You can download installers here:


A nuBASIC version for Android (ARM) system is available at (it includes a pre-built binary). This is version is not stable and relies on Termux (

nubasic on android

(see also README file)