@@ -20,7 +20,7 @@ Can you trust it if it doesn't?)
2020
2121### Usage
2222
23- ###### Stack
23+ ##### Stack
2424
2525owoScript is written in a descriptive language consisting of stack operations, number literals,
2626` while ` loops, and ` if {} else {} ` statements.
4444corresponds to 8 / 2, not 2 / 8. However, in addition to the stack, an optional "hashmap",
4545mapping integer keys to integer values, is available through the ` store ` and ` get ` commands
4646
47- ###### Arithmetic
47+ ##### Arithmetic
4848
4949Because owoScript is stack-based, arithmetic is performed in postfix notation.
5050This means that writing something like (2+3)* (5/7)
6363mult;
6464```
6565
66- ###### Flow control
66+ ##### Flow control
6767
6868Flow control is provided in ` while ` loops and ` if {} else {} ` statements
6969
@@ -98,20 +98,20 @@ and pop the top value of the stack. If it is truthy, the first block is executed
9898the second one is.
9999
100100
101- ###### Commands
101+ ##### Commands
102102
103103Commands are single word operations (except for number literals, see below)
104104
105105| Keyword | Pops | Pushes |
106106| ------------| ------| ------------------------------------------------------------|
107- | literal < x > | None | hex value of x, x must be single hex digit (0-9, a-f) |
107+ | literal x | None | hex value of x, x must be single hex digit (0-9, a-f) |
108108| add | a, b | a + b |
109109| sub | a, b | a - b |
110110| mult | a, b | a * b |
111111| div | a, b | a // b (floor division) |
112112| mod | a, b | a % b (modulus) |
113113| exp | a, b | a ^ b (exponent) |
114- | print | a | prints the character with code [ a ] |
114+ | print | a | prints the character with code * a * |
115115| printnum | a | prints the number literally |
116116| printstack | None | prints entire stack |
117117| input | None | number of character read from stdin |
@@ -134,7 +134,7 @@ Commands are single word operations (except for number literals, see below)
134134| hexmult | a, b | a * 16 + b (hexadecimal digit appending) |
135135| printhash | None | prints entire hashmap |
136136
137- ###### CLI Usage
137+ ##### CLI Usage
138138
139139The python script ` owo.py ` is used for running owoScript bytecode or psuedocode, while the python
140140script ` owoc.py ` is the compiler/decompiler used to transform code from pseudocode or bytecode.
@@ -147,7 +147,7 @@ A command line option can be used to specify whether you'd like the transpiler t
147147
148148See ` sierpinski_bf.owop ` and ` mandelbrot_bf.owop ` for examples of these conversions.
149149
150- ###### Turing completeness
150+ ### Turing completeness
151151owoScript is provably Turing complete, via a simple reduction to brainfuck
152152
153153``` /*
0 commit comments