aboutsummaryrefslogtreecommitdiff
path: root/lib/control_flow.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-01-05 15:45:46 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-01-05 15:45:46 -0800
commit2df539a76293f028077abd81e75bbfa9b510ae07 (patch)
tree596406142ede0e24bc52ac980e8790593137fb2a /lib/control_flow.nom
parent139bd76efc5758c1826cd89fcfd65e55e6416ec9 (diff)
More cleanup of vars.XX -> \%XX
Diffstat (limited to 'lib/control_flow.nom')
-rw-r--r--lib/control_flow.nom12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/control_flow.nom b/lib/control_flow.nom
index 825e1c2..2ac6cff 100644
--- a/lib/control_flow.nom
+++ b/lib/control_flow.nom
@@ -169,7 +169,7 @@ compile [when %body] to code:
Invalid format for 'when' statement. Only '*' blocks are allowed.
%tokens = (%func_call's "value")
%star = (%tokens -> 1)
- assert (=lua "vars.star and vars.star.type == 'Word' and vars.star.value == '*'") ".."
+ assert (=lua "\%star and \%star.type == 'Word' and \%star.value == '*'") ".."
Invalid format for 'when' statement. Lines must begin with '*'
%condition = (%tokens -> 2)
@@ -178,10 +178,10 @@ compile [when %body] to code:
%action = (%tokens -> 3)
if (%action == (nil)):
- lua do> "table.insert(vars.fallthroughs, vars.condition)"
+ lua do> "table.insert(\%fallthroughs, \%condition)"
do next %func_call
- if (=lua "vars.condition.type == 'Word' and vars.condition.value == 'else'"):
+ if (=lua "\%condition.type == 'Word' and \%condition.value == 'else'"):
%result join= ".."
else
@@ -213,7 +213,7 @@ compile [when %branch_value == ? %body] to code:
Invalid format for 'when' statement. Only '*' blocks are allowed.
%tokens = (%func_call's "value")
%star = (%tokens -> 1)
- assert (=lua "vars.star and vars.star.type == 'Word' and vars.star.value == '*'") ".."
+ assert (=lua "\%star and \%star.type == 'Word' and \%star.value == '*'") ".."
Invalid format for 'when' statement. Lines must begin with '*'
%condition = (%tokens -> 2)
@@ -222,10 +222,10 @@ compile [when %branch_value == ? %body] to code:
%action = (%tokens -> 3)
if (%action == (nil)):
- lua> "table.insert(vars.fallthroughs, vars.condition)"
+ lua> "table.insert(\%fallthroughs, \%condition)"
do next %func_call
- if (=lua "vars.condition.type == 'Word' and vars.condition.value == 'else'"):
+ if (=lua "\%condition.type == 'Word' and \%condition.value == 'else'"):
%result join= ".."
else