An open API service indexing awesome lists of open source software.

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

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
```