-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
bugSomething isn't workingSomething isn't working
Description
test.lua:
hello = 'hello'
print(hello)
len = string.len(hello)
print(len)
the_num = 1 + 2
print(the_num)
float_num = 3.14
print(float_num)
mytable = {}
mytable.foo = "hello world"
mytable.bar = 1 + 2
print(mytable)
function sayhello(name)
print("hello, "..name)
endThis command can generate Out.lua:
cargo run -- --file test.luaThen I try to run Out.lua, the error:
$ lua ./Out.lua
lua: ./Out.lua:1: attempt to perform arithmetic on a nil value
stack traceback:
./Out.lua:1: in function <./Out.lua:1>
(tail call): ?
./Out.lua:1: in function '_R'
./Out.lua:1: in function '_03'
./Out.lua:1: in function <./Out.lua:1>
(tail call): ?
./Out.lua:1: in function 'a'
./Out.lua:1: in main chunk
[C]: ?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working