8.18
top
← prev up next →

TinyBASICπŸ”— i

Winston (winny) Weinert

1Writing TinyBASIC ProgramsπŸ”— i

Refer to The TINY BASIC User Manual on ittybittycomputers.com’s website.

2TinyBASIC LanguageπŸ”— i

2.1Control FlowπŸ”— i

2.2StatementsπŸ”— i

3Running TinyBASICπŸ”— i

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.

4Running the examplesπŸ”— i

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.

5Project InformationπŸ”— i

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /