mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
28 lines
427 B
Lua
28 lines
427 B
Lua
local ast = require("anselme.ast")
|
|
local Nil
|
|
|
|
local event_manager = require("anselme.state.event_manager")
|
|
|
|
local Flush = ast.abstract.Node {
|
|
type = "flush",
|
|
|
|
init = function(self) end,
|
|
|
|
_hash = function(self)
|
|
return "flush"
|
|
end,
|
|
|
|
_format = function(self)
|
|
return "\n"
|
|
end,
|
|
|
|
_eval = function(self, state)
|
|
event_manager:flush(state)
|
|
return Nil:new()
|
|
end
|
|
}
|
|
|
|
package.loaded[...] = Flush
|
|
Nil = ast.Nil
|
|
|
|
return Flush
|