<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-26 15:04:20 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-26 15:04:20 +0100
commite98ebbad387def55d8347adb5bf45034d542cce0 (patch)
treee33d6b881c91a6277374545f8c69ac8f9f59aa60
parent39f767aef901694eef14b1004b13756410f19f66 (diff)
downloadstred-go-e98ebbad387def55d8347adb5bf45034d542cce0.tar
Document branching
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index d2f5700..73f3ba0 100644
--- a/README.md
+++ b/README.md
@@ -274,3 +274,5 @@ With an understanding of subexes, we can look at the stred commands
| `Z` | Append the contents of the value register to the Z register |
| `k` | Swap the value register with the path register |
| `K` | Append the contents of the value register to the path register |
+| `:` | Create a label. The character after `:` is used to label this point in the program, e.g. `:a` creates a label called `a` |
+| `b` | Branch to a label. The character after `b` is the label to branch to, e.g. `ba` branches to label `a` |