aboutsummaryrefslogtreecommitdiff
path: root/core.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-12 21:19:19 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-12 21:19:19 -0700
commita9e1bb479e80893773f64d55f05ead68de042e7d (patch)
tree9157a43360857f0953e4df65b9bfc79f1c915b99 /core.nom
parent052504a86b9162d8a389f9649ced09ed53da9f69 (diff)
Fixed up a bug in the sample game.
Diffstat (limited to 'core.nom')
-rw-r--r--core.nom3
1 files changed, 3 insertions, 0 deletions
diff --git a/core.nom b/core.nom
index 8ef2a80..920a295 100644
--- a/core.nom
+++ b/core.nom
@@ -61,6 +61,9 @@ rule "concat %strs with glue %glue":
macro block "return %return-value":
concat ["do return ",%return-value as lua expr," end"]
+macro block "return":
+ "do return nil end"
+
macro block "let %varname = %value":
concat ["vars[",%varname as lua expr,"] = ",%value as lua expr]