All Projects → cvhariharan → Tiny-Basic

cvhariharan / Tiny-Basic

Licence: MIT license
A tiny and basic TINY-BASIC interpreter

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to Tiny-Basic

Minimal
A Delightfully Diminutive Lisp. Implemented in < 1 KB of JavaScript with JSON source, macros, tail-calls, JS interop, error-handling, and more.
Stars: ✭ 560 (+1596.97%)
Mutual labels:  interpreter, tiny
Square
The Square Programming Language. A tiny programming language under 200kb.
Stars: ✭ 23 (-30.3%)
Mutual labels:  interpreter, tiny
ol
Otus Lisp (Ol in short) is a purely* functional dialect of Lisp.
Stars: ✭ 157 (+375.76%)
Mutual labels:  interpreter, tiny
embed
An embeddable, tiny Forth interpreter with metacompiler.
Stars: ✭ 80 (+142.42%)
Mutual labels:  interpreter, tiny
ME
A DSL for macro expansion ,in order to help framework develop
Stars: ✭ 24 (-27.27%)
Mutual labels:  interpreter
iris
The interpreter of ISLisp
Stars: ✭ 58 (+75.76%)
Mutual labels:  interpreter
wizard-engine
Research WebAssembly Engine
Stars: ✭ 164 (+396.97%)
Mutual labels:  interpreter
CalDOM
An agnostic, reactive & minimalist (3kb) JavaScript UI library with direct access to native DOM.
Stars: ✭ 176 (+433.33%)
Mutual labels:  tiny
bfpile
Optimizing Brainfuck compiler, transpiler and interpreter
Stars: ✭ 19 (-42.42%)
Mutual labels:  interpreter
elk
A low footprint JavaScript engine for embedded systems
Stars: ✭ 1,458 (+4318.18%)
Mutual labels:  tiny
Freeze-OS
An Operating System that runs on top of an interpreter.
Stars: ✭ 24 (-27.27%)
Mutual labels:  interpreter
EightBall
The Eight Bit Algorithmic Language for Apple II, Commodore 64 and VIC20
Stars: ✭ 17 (-48.48%)
Mutual labels:  interpreter
ciao
Ciao is a modern Prolog implementation that builds up from a logic-based simple kernel designed to be portable, extensible, and modular.
Stars: ✭ 190 (+475.76%)
Mutual labels:  interpreter
avaloni
Interpreter of the Avalon programming language.
Stars: ✭ 14 (-57.58%)
Mutual labels:  interpreter
Script
Script is an object-oriented interpreted programming language. Being migrated to CppUtils
Stars: ✭ 18 (-45.45%)
Mutual labels:  interpreter
malbolge
A Malbolge implementation and interpreter in Rust.
Stars: ✭ 23 (-30.3%)
Mutual labels:  interpreter
Juka
🥣 Juka Programming Language - Fast Portable Programming Language. Run code anywhere without complicated installations and admin rights. Simple, yet powerful new programming language [Easy to code and run on any system] IOT devices supported!
Stars: ✭ 68 (+106.06%)
Mutual labels:  interpreter
Laythe
A gradually typed language originally based on the crafting interpreters series
Stars: ✭ 58 (+75.76%)
Mutual labels:  interpreter
basic
📺 A from-scratch BASIC interpreter with a focus on being easy to extend and port.
Stars: ✭ 66 (+100%)
Mutual labels:  interpreter
picol
(Fossil repository mirror) A tiny interpreter
Stars: ✭ 19 (-42.42%)
Mutual labels:  interpreter

Tiny Basic Interpreter

A tiny basic interpreter in C. Does not follow the exact language spec as I could not find a standard spec. Still a WIP. You can read about the intepreter here

  • Implement the grammar (some commands omitted)
  • Comments
  • Error reporting
build/tbc examples/fibonacci.tb

Example Programs

Fibonacci

REM This code prints n fibonacci numbers
LET a = 0
LET b = 1
LET n = 10

REM This is how loops work for now
100 PRINT a
IF n == 0 THEN END
LET t = b
LET b = a + b
LET a = t
LET n = n - 1
GOTO 100

Gimme some stars

PRINT "How many stars do you want?"
LET stars = 0
INPUT stars
10 IF stars == 0 THEN END
PRINT "*"
LET stars = stars - 1
GOTO 10
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].