Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Chinese name function functions be supported? #261

Open
ukaiyuan opened this issue Mar 10, 2024 · 0 comments
Open

Can Chinese name function functions be supported? #261

ukaiyuan opened this issue Mar 10, 2024 · 0 comments

Comments

@ukaiyuan
Copy link

run

from lupa.lua53 import LuaRuntime

lua = LuaRuntime()

r = lua.execute("""
function 加法(a, b)
return a + b 
end
return 加法(1,2)
""")
print(r)

output

Traceback (most recent call last):
  File "E:\tlsoft\echo.py", line 7, in <module>
    r = lua.execute("""
  File "lupa\lua53.pyx", line 412, in lupa.lua53.LuaRuntime.execute
  File "lupa\lua53.pyx", line 1735, in lupa.lua53.run_lua
lupa.lua53.LuaSyntaxError: error loading code: [string "<python>"]:2: <name> expected near '<\229>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant