diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-03-14 16:30:43 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-03-14 16:30:43 -0700 |
| commit | ddb839bfd4ba8dbdd214f3e885629fc8fe57e68c (patch) | |
| tree | aee183d005229b21a5ce636685f416f97bd5aa9e /lib/compatibility/2.nom | |
| parent | 7f138199078a2fc2b6d6ee8d31da940120c8216a (diff) | |
Replacing (size of $) with (#$) as should have been done before.
Diffstat (limited to 'lib/compatibility/2.nom')
| -rw-r--r-- | lib/compatibility/2.nom | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/compatibility/2.nom b/lib/compatibility/2.nom index da11245..782ccb0 100644 --- a/lib/compatibility/2.nom +++ b/lib/compatibility/2.nom @@ -33,6 +33,5 @@ upgrade $tree to "2" as: $bits = [: for $ in $tree: add (($ upgraded) if ($ is syntax tree) else $)] unless (($bits, last) is "Block" syntax tree): $body = ($bits, last) - $bits.(size of $bits) = - =lua "SyntaxTree{type='Block', source=\$body.source, \$body}" - return (=lua "SyntaxTree{type='Action', source=\$tree.source, unpack(\$bits)}") + $bits.(#$bits) = (=lua "SyntaxTree{type='Block', source=\$body.source, \$body}") + return (=lua "SyntaxTree{type='Action', source=\$tree.source, unpack(\$bits)}")
\ No newline at end of file |
