Commit a4855160 authored by Wastl's avatar Wastl

Added packed ObCode and debugging info

parent efecedef
......@@ -9,7 +9,7 @@ other objects.
obj_list ::= obj_list obj |
Each object is a pair of parentheses with the other objects inbetween. Every
program is an object.
program is an object. All characters other than parentheses are ignored.
## Memory model
......@@ -34,6 +34,17 @@ If an object is executed, each sub-object interpreted as an instruction.
|`(()()(()))`|CAT |Pop two objects and concatenate them.|
|`((()())())`|DEF |Pop a, pop b. Redefine b as an instruction that does a.|
## Packed ObCode
Packed ObCode is a more efficient variant of [Binary ObCode](https://esolangs.org/wiki/ObCode#Binary_ObCode).
The interpreter does automatically detect it. You can pack/unpack programs with
the `-p` command line option.
## Debugging
The `-d` command line option activates debugging mode. It writes large amounts
of debugging info to STDERR.
## Computational class
ObCode is Turing-complete, as every brainfuck program can be translated to ObCode:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment