mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 17:19:31 +00:00
Translation system first draft
This commit is contained in:
parent
ffadc0dd69
commit
c4636343b4
15 changed files with 215 additions and 18 deletions
|
|
@ -58,14 +58,8 @@ Table = ast.abstract.Runtime {
|
|||
return s:has(key)
|
||||
end,
|
||||
iter = function(self, state)
|
||||
local t, h = self.branched:get(state).table, nil
|
||||
return function()
|
||||
local e
|
||||
h, e = next(t, h)
|
||||
if h == nil then return nil
|
||||
else return e[1], e[2]
|
||||
end
|
||||
end
|
||||
local s = self.branched:get(state)
|
||||
return s:iter()
|
||||
end,
|
||||
|
||||
to_struct = function(self, state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue