Skip to content

timothyqiu/tinybasic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny BASIC interpreter in Zig

A simple Tiny BASIC interpreter in Zig 0.13.0.

Implemented most grammar except for keywords CLEAR, LIST, and RUN.

  • Added support for lower case characters in string literals.
  • Added REM statement for comments.
  • Added functions ABS(N), RND(N), and MOD(N,D).

Usage

Build with zig build.

Example programs can be found in the examples folder.

$ cat examples/hello.bas
PRINT "HELLO WORLD!"
$ ./zig-out/bin/tinybasic examples/hello.bas
HELLO WORLD!

About

A simple Tiny BASIC interpreter in Zig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages