Replies: 1 comment 3 replies
-
after doing local tl = require"tl"
tl.loader() the lua vm becomes able to load However, what you seem to have done is put the teal code inside the same file as the lua code that loads teal. This does not work, as lua first needs to parse the file before it can run. Because your file contains teal syntax that is invalid lua, the lua vm can not run the code at all and thus never even gets to the part where it loads the teal compiler. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have script tl_using.lua:
` local tl = require("tl")
tl.loader()
local function property() : number
return 34.3
end
value = property()
print(value)`
I try to run it like this
lua tl_using.lua lua: tl_using.lua:6: unexpected symbol near ':'
I couldn't run tl code with lua interpreter?
Beta Was this translation helpful? Give feedback.
All reactions