Home‎ > ‎C/C++ & Java: source code‎ > ‎

nuBASIC - BASIC interpreter written in C++11

 nuBASIC (http://www.nubasic.euis an implementation of a programming language BASIC interpreter. 

It has been designed mainly for educational purposes both for C++ developers that can deal with a non-trivial example of C++11 programming and for nuBASIC's users, that may get hooked on programming. nuBASIC is distributed as source code under GPLv2 License.
Source files compile under several operating systems, e.g. Linux and MS Windows, and maybe others.
To compile nuBASIC you may create a Visual Studio console application or build it by using GCC (both VS project files and standard makefile have been provided) or again using MinGW.

nuBASIC releases and source code can be downloaded from http://sourceforge.net/projects/nubasic or 

Why nuBASIC?
Ever since starting writing BASIC programs on my Commodore 64 I've always wanted to write a BASIC interpreter. 

During a programming course in C++11 which I held in 2014, I decided to implement an interpreter, as sample code, and my choice fell on BASIC, fifty years after John G. Kemeny and Thomas E. Kurtz designed the original BASIC language. 

Despite Dijkstra's famous judgment, "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration", BASIC was one of the few languages simple enough for a 8 year old child to understand, so its simplicity made it easy for beginners to learn programming. 
I was 8 when I started to program in BASIC and I'm not sure that I was able to understand so well advanced programming languages in those days.

nuBASIC review by www.linuxvoice.com
Linux Voice is an independent GNU/Linux and Free Software magazine from the most experienced journalists in the business.
"...nuBASIC still fills a niche: for those who fancy a trip down memory lane, for programmers who want to see how a language is implemented (the interpreter is written in C++), and for children looking for an easy path into the world of programming."