diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-10-31 15:54:18 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-10-31 15:54:51 -0700 |
| commit | d0c3c57f7b25c8d912c426e48cb5ab09cd738f65 (patch) | |
| tree | bc783d59d13c859343a9225f003062adb455ecac /core/operators.nom | |
| parent | ec92b0fccd70f06b5348fa355f49557aa71fdb3c (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.nom | 2 |
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) |
