Writing a BASIC Interpreter

Getting Down to Business

So you've decided to try your hand at writing a language interpreter, specifically BASIC. Maybe you have a hankering for some old school computing or maybe you just need a new personal project to work on. Well, here you'll find a bunch of resources on building your own BASIC. BYOB.

In the left hand navigation bar you'll find a links to actual source code written in various languages as well as links to the tools you can use to build your interpreter.

Articles

Here are a series of articles on building BASIC interpreters ranging from introductory to laying out the complete construction.

Writing an Interpreter Part I | Part II | Part IIIa | Part IIIb | Part IIIc | Part IIId
How to build an interpreter in Java Part 1 | Part 2 | Part 3
The Return of Tiny Basic
A BASIC Interpreter (Wayback Machine)
Itty Bitty Computers & TinyBasic
Ruby Quiz - 228 Ruby BASIC and Ruby Quiz - 232 Interactive Mode BASIC Interpreter
SBI: The Small Basic Interpreter

Books

Structure and Interpretation of Computer Programs
Writing Compilers and Interpreters: A Software Engineering Approach
Language Implementation Patterns: Create Your Own Domain-Specific and General Programming Languages
Writing Interactive Compilers and Interpreters
Constructing Language Processors for Little Languages
Programming Language Processors in Java: Compilers and Interpreters
Implementing Programming Languages. An Introduction to Compilers and Interpreters