aboutsummaryrefslogtreecommitdiff
path: root/core/operators.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-10-31 15:54:18 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-10-31 15:54:51 -0700
commitd0c3c57f7b25c8d912c426e48cb5ab09cd738f65 (patch)
treebc783d59d13c859343a9225f003062adb455ecac /core/operators.nom
parentec92b0fccd70f06b5348fa355f49557aa71fdb3c (diff)
Simplified AST to just use a single moonscript class called "SyntaxTree"
instead of a different metatable for each type of syntax tree.
Diffstat (limited to 'core/operators.nom')
-rw-r--r--core/operators.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/operators.nom b/core/operators.nom
index 489bbfe..bd93cd5 100644
--- a/core/operators.nom
+++ b/core/operators.nom
@@ -53,7 +53,7 @@ test:
for i, item in ipairs(\%assignments) do
local \%target, \%value = item[1], item[2]
\%value = \%value:map(function(t)
- if Action:is_instance(t) and t.stub == "?" then
+ if SyntaxTree:is_instance(t) and t.type == "Action" and t.stub == "?" then
return \%target
end
end)