aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/control_flow.nom2
-rw-r--r--core/operators.nom2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/control_flow.nom b/core/control_flow.nom
index 4066a97..d40c349 100644
--- a/core/control_flow.nom
+++ b/core/control_flow.nom
@@ -88,7 +88,7 @@ immediately:
locals: %body_lua's "locals"
statements:".."
for \(%subtree as lua expr) in coroutine.wrap(function() nomsu:walk_tree(\(%tree as lua expr)) end) do
- if type(\(%subtree as lua expr)) == 'table' and \(%subtree as lua expr).type then
+ if Types.is_node(\(%subtree as lua expr)) then
if \(%condition as lua expr) then
\%body_statements
break;
diff --git a/core/operators.nom b/core/operators.nom
index d2929bf..7a6f535 100644
--- a/core/operators.nom
+++ b/core/operators.nom
@@ -79,7 +79,7 @@ immediately:
Expected a Dict for the assignments part of '<- %' statement, not \(%assignments' source code)
lua> ".."
for i, item in ipairs(\%assignments.value) do
- local target, value = item.dict_key, item.dict_value;
+ local target, value = item.key, item.value;
local target_lua = nomsu:tree_to_lua(target);
if not target_lua.expr then error("Invalid target for assignment: "..target:get_src()); end
local value_lua = nomsu:tree_to_lua(value);