https://github.com/zevv/zbasic
More old skool stuff for tiny embedded environments
https://github.com/zevv/zbasic
Last synced: 7 months ago
JSON representation
More old skool stuff for tiny embedded environments
- Host: GitHub
- URL: https://github.com/zevv/zbasic
- Owner: zevv
- Created: 2018-04-29T21:47:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-12T08:41:28.000Z (almost 8 years ago)
- Last Synced: 2025-07-19T09:58:26.067Z (7 months ago)
- Language: C
- Size: 49.8 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
zBasic
======
zBasic is a minimal BASIC interpreter for embedded environments, compiling to
under 4kB code on ARM THUMB. It is easily extended by writing C functions that
can be called from BASIC code.
The core variable type can be configured to fit the host system, zBasic
supports signed and unsigned integer or float/double variables.
The BASIC source is parsed and converted into byte code resulting in pretty
decent performance.
zBasic currently supports:
- direct execution from REPL or running from program lines
- flow control with if/then/else, for/next, goto, gosub/return
Strings and arrays are not yet supported.
Usage
=====
````
$ make
$ make test
$ ./zbasic < basic/mandel.bas
````