1
0
Fork 0
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:
Étienne Fildadut 2024-01-03 16:40:49 +01:00
parent 93dadb3b5d
commit 3d10b1b15c
4 changed files with 55 additions and 37 deletions

13
anselme/ast/Undefined.lua Normal file
View 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
}