https://github.com/jdan/haskell-basic
A TinyBASIC interpreter written in Haskell
https://github.com/jdan/haskell-basic
Last synced: 8 months ago
JSON representation
A TinyBASIC interpreter written in Haskell
- Host: GitHub
- URL: https://github.com/jdan/haskell-basic
- Owner: jdan
- Created: 2015-07-31T04:34:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-02T06:03:34.000Z (almost 11 years ago)
- Last Synced: 2025-06-13T04:41:33.356Z (about 1 year ago)
- Language: Haskell
- Size: 137 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A [TinyBASIC](https://en.wikipedia.org/wiki/Tiny_BASIC) interpreter written in Haskell compatible with [GHCJS](https://github.com/ghcjs/ghcjs)
## console
```
$ make build
$ cat test.bas
10 LET A = 3
20 LET B = (A*5) + 2
30 PRINT B
$ cat test.bas | ./basic-interpreter
17
```
## js
```
$ make js
$ cd basic-interpreter.jsexe
$ python -m SimpleHTTPServer
```