diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-02 14:38:24 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-02 14:39:23 -0700 |
| commit | 307dea18815ba4a06a3098edb170d7ad90708815 (patch) | |
| tree | bce78eb28fa03c9939a92e08e47564afc984c988 /core/operators.nom | |
| parent | d0c3c57f7b25c8d912c426e48cb5ab09cd738f65 (diff) | |
Changed stub convention to (foo 1 baz 2) -> foo_1_baz instead of
foo_1_baz_2, removed "smext", made some cleanup changes.
Diffstat (limited to 'core/operators.nom')
| -rw-r--r-- | core/operators.nom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/operators.nom b/core/operators.nom index bd93cd5..6d574b7 100644 --- a/core/operators.nom +++ b/core/operators.nom @@ -34,7 +34,7 @@ test: lua> "\ ..local lua = LuaCode(tree.source, \%var_lua, ' = ', \%value_lua, ';') if \%var.type == 'Var' then - lua:add_free_vars({nomsu:compile(\%var):as_smext()}) + lua:add_free_vars({nomsu:compile(\%var):text()}) end return lua" @@ -66,7 +66,7 @@ test: %value as text ..) end if \%target.type == "Var" then - lhs:add_free_vars({target_lua:as_smext()}) + lhs:add_free_vars({target_lua:text()}) end if i > 1 then lhs:append(", ") @@ -107,7 +107,7 @@ test: (with external %externs %body) compiles to: %body_lua = (%body as lua statements) lua> "\ - ..\%body_lua:remove_free_vars(table.map(\%externs, function(v) return nomsu:compile(v):as_smext() end))" + ..\%body_lua:remove_free_vars(table.map(\%externs, function(v) return nomsu:compile(v):text() end))" return %body_lua test: @@ -141,7 +141,7 @@ test: lhs:append(target_lua) rhs:append(value_lua) if \%target.type == "Var" then - vars[i] = target_lua:as_smext() + vars[i] = target_lua:text() end end \%lua:remove_free_vars(vars) |
