Skip to content

Extremely simple tiny basic interpreter for learning parsing + ast's

Notifications You must be signed in to change notification settings

johndoesstuff/tinyBasicInterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Tiny BASIC Interpreter

Written for nodejs, supports:

Commands:

  • PRINT
  • IF
  • GOTO
  • INPUT
  • LET
  • GOSUB
  • RETURN
  • END

Other Features:

  • Nested expression parsing
  • REM comments
  • Integer division

As an implementation detail all uninitialized variables are set to a value of 0 for backwards compatibility

To run:

node bas.js [TB FILENAME]

Examples can be found in /examples

About

Extremely simple tiny basic interpreter for learning parsing + ast's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published