From 2e5554526b8e5efda19643369fe2c9768825cafd Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 29 Jun 2024 22:21:24 -0400 Subject: docs: readme fix mistake in proc declaration e.g. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 633a562..93e61ff 100644 --- a/readme.md +++ b/readme.md @@ -35,7 +35,7 @@ Current builtin operations: - `depth` - push that stack size - `clearstack` - clear the stack - `if then ` - an optional section. `if` pops a val, and if that val is 0, skips to then. (Branch if zero) - - `: ;` - a procedure declaration. A new op is added, when it is run, the tokens in the body are evaluated. e.g. `: decr 1 - ; ` will define a new operation `incr`, that increments the valu at the top of the stack. + - `: ;` - a procedure declaration. A new op is added, when it is run, the tokens in the body are evaluated. e.g. `: incr 1 + ; ` will define a new operation `incr`, that increments the value at the top of the stack. - `nip` - discards the second val from the top - `tuck` - copies the top val and inserts it between the second and third - `incr` - increments the top value -- cgit v1.2.3