diff options
| author | Julian Hurst <ark@mansus.space> | 2026-03-12 00:24:04 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2026-03-12 00:24:04 +0100 |
| commit | 3b6bee74d9957430a5cc7fa515899a5b85f1fe3d (patch) | |
| tree | e28320e2d51a18146ed694dd95af9c077414446e /spec | |
| parent | 7bbdffafdbf016c3a8aecaeb4b7d29b0f10217d3 (diff) | |
| download | rabbitscript-3b6bee74d9957430a5cc7fa515899a5b85f1fe3d.tar.gz | |
spec: Add variable invocation
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/variable-invocation.md | 21 |
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) |
