summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2026-03-12 00:24:04 +0100
committerJulian Hurst <ark@mansus.space>2026-03-12 00:24:04 +0100
commit3b6bee74d9957430a5cc7fa515899a5b85f1fe3d (patch)
treee28320e2d51a18146ed694dd95af9c077414446e
parent7bbdffafdbf016c3a8aecaeb4b7d29b0f10217d3 (diff)
downloadrabbitscript-3b6bee74d9957430a5cc7fa515899a5b85f1fe3d.tar.gz
spec: Add variable invocation
-rw-r--r--spec/variable-invocation.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/variable-invocation.md b/spec/variable-invocation.md
new file mode 100644
index 0000000..021ea13
--- /dev/null
+++ b/spec/variable-invocation.md
@@ -0,0 +1,21 @@
+---
+title: Variable invocation
+version: 1.0.0
+state: draft
+---
+
+# Variable invocation
+
+Variable invocation is the act of referring to a variable's name in order to invoke its value.
+
+The variable invocation grammar is to be replaced with the value of the variable.
+
+## Grammar
+
+A variable invocation is represented by the following grammar:
+
+```
+${VARNAME}
+```
+
+Where VARNAME is a valid variable that has been previously declared using the grammar specified in [variable-declaration](variable-declaration.md)