mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-29 17:49:29 +00:00
Rework variable undefinition
This commit is contained in:
parent
93dadb3b5d
commit
3d10b1b15c
4 changed files with 55 additions and 37 deletions
13
anselme/ast/Undefined.lua
Normal file
13
anselme/ast/Undefined.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
local ast = require("anselme.ast")
|
||||
|
||||
return ast.abstract.Runtime {
|
||||
type = "undefined",
|
||||
|
||||
init = function(self) end,
|
||||
|
||||
_format = function(self)
|
||||
return "<undefined>"
|
||||
end,
|
||||
|
||||
truthy = function(self) return false end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue