6f65b65f7d
I've wrestled for a long time with how to support integer division with its hard-coded registers. The answer's always been staring me in the face: just turn it into a function! We already expect function outputs to go to hard-coded registers. |
||
---|---|---|
.. | ||
README.md | ||
box.mu | ||
data.mu | ||
environment.mu | ||
gap-buffer.mu | ||
grapheme-stack.mu | ||
int-stack.mu | ||
main.mu | ||
rpn.mu | ||
surface.mu | ||
table.mu | ||
value-stack.mu | ||
value.mu | ||
vimrc.vim | ||
word.mu |
README.md
A programming environment that tries to “stop drawing dead fish”.
To run:
./translate_mu apps/tile/*.mu
./a.elf screen
To run tests:
./a.elf test
To run a conventional REPL (for debugging):
./a.elf type
hacking
Unlike the top-level directory, this is just a prototype so far. There are no tests.
To add a new primitive you'll need to hard-code it into the evaluate
function (apps/tile/rpn.mu).
There's also a second place you'll want to teach about predefined primitives:
bound-function?
(apps/tile/environment.mu)