8.16.0.4
TinyBASIC
(require tinybasic) | package: tinybasic-lib |
1 Writing TinyBASIC Programs
Refer to The TINY BASIC User Manual on ittybittycomputers.com’s website.
2 TinyBASIC Language
2.1 Control Flow
2.2 Statements
3 Running TinyBASIC
If you put
#lang tinybasic |
at the top of a source file, you should be able to run your TinyBASIC program via
racket yourprogram.rkt |
.
Alternately, you may run either
tinybasic |
or
racket -l tinybasic -- |
to open up an interactive monitor (REPL). See
tinybasic --help |
or
racket -l tinybasic -- --help |
for more information.
4 Running the examples
Try one of the following commands:
racket -l tinybasic/examples/fizzbuzz
racket -l tinybasic/examples/hello
racket -l tinybasic/examples/pascals-triangle
racket -l tinybasic/examples/guess-number
Get help with running an example like so:
racket -l tinybasic/examples/guess-number -- --help |
. You need the
-- |
to tell
racket |
the flag is for the loaded module, not for the
top level racket executable.
5 Project Information
MIT/X Licensed
API and Language are NOT stable. Subject to change.