summaryrefslogtreecommitdiff
path: root/docs/module/rules.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/module/rules.md')
-rw-r--r--docs/module/rules.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/module/rules.md b/docs/module/rules.md
index ed99188..7f9ae2d 100644
--- a/docs/module/rules.md
+++ b/docs/module/rules.md
@@ -170,6 +170,11 @@ There's also a global scope for the main game data (via the G namespace).
---
+The state stack is implmented as a linked list (G.L is the head of the linked
+list, and G.L.L is the next state down the stack, etc.) Invoking call pushes a
+new state at the top of the stack; goto replaces the current top of the stack,
+and end pops the stack.
+
## States
The "states" where we wait for user input are kept in the S table.