GSoC 2025 - Macro support for teal
Teal Playground URL: https://1051--teal-playground-preview.netlify.app
@Frityet CI is red (PUC-Rio Lua 5.1 does not support goto)
@hishamhm done 😄 👍
seems like nodes made with block() aren't properly showing up in generated lua? investigating...
local macro test!(): Expression
local s = block("string")
s.conststr = "hello"
return s
end
local x = test!()
seems like nodes made with
block()aren't properly showing up in generated lua? investigating...local macro test!(): Expression local s = block("string") s.conststr = "hello" return s end local x = test!()
nevermind, this is intentional, its cause I didn't put in tk... @hishamhm should we make it so if its a block that depends on tk, such as string or integer that it should error?
seems like nodes made with
block()aren't properly showing up in generated lua? investigating...local macro test!(): Expression
local s = block("string")s.conststr = "hello"return send
local x = test!()
nevermind, this is intentional, its cause I didn't put in
tk... @hishamhm should we make it so if its a block that depends ontk, such asstringorintegerthat it should error?
Actually I think a better solution is to just put conststr and constnum as blocks and make the parser read from the block