mu/linux/tile/README.md

34 lines
654 B
Markdown
Raw Normal View History

2020-09-27 03:14:06 +00:00
A programming environment that tries to [“stop drawing dead fish”](http://worrydream.com/#!/StopDrawingDeadFish).
<img alt='screenshot' src='../../html/rpn5.png' width='500px'>
2020-09-20 06:46:40 +00:00
To run:
```
2021-03-04 08:11:23 +00:00
$ cd linux
$ ./translate tile/*.mu
$ ./a.elf screen
```
2020-09-20 06:46:40 +00:00
To run tests:
```
2021-03-04 08:11:23 +00:00
$ ./a.elf test
2020-09-20 06:46:40 +00:00
```
2020-09-27 02:15:04 +00:00
To run a conventional REPL (for debugging):
```
2021-03-04 08:11:23 +00:00
$ ./a.elf type
2020-09-27 02:15:04 +00:00
```
2020-10-29 20:19:53 +00:00
## hacking
2021-03-09 05:24:45 +00:00
This is just a prototype. There are no tests.
2020-10-29 20:19:53 +00:00
To add a new primitive you'll need to hard-code it into the `evaluate`
2021-03-30 01:47:52 +00:00
function (linux/tile/rpn.mu).
2020-10-29 20:19:53 +00:00
There's also a second place you'll want to teach about predefined primitives:
2021-03-30 01:47:52 +00:00
`bound-function?` (linux/tile/environment.mu)