nim-lang / lua Goto Github PK
View Code? Open in Web Editor NEWNim Wrapper to interface with the Lua interpreter
License: MIT License
Nim Wrapper to interface with the Lua interpreter
License: MIT License
nim c -r examples/luaex.nim
could not import: lua_equal
error while compiling the sample app.
/Users/user/.nimble/pkgs/lua-1.0/lua.nim(88, 12) Error: undeclared identifier: 'Pointer'
I was trying to use the Lua 5.2 bindings but ran into an error while trying to call lua_tostring. It turns out, this was because the template lua_tostring
in lua52.nim
expands to a call to an undefined proc lua_tolstring
. In fact, many of the templates in that section expand to calls to undefined procs. Am I missing a different import or is there something wrong here?
I think there is a problem with linking to DLLs in lua.nim
. There are links to shared libraries written as glob/regular expressions (e.g. lua(|5.1|5.0).dll
).
When running compiled exe
, it probably search for lua(|5.1|5.0).dll
which does not exist on disk. When I changed it to lua5.1.dll
in lua.nim
it was running OK.
.nim(16, 19) Error: type mismatch: got <PState, string, int literal(35), string>
but expected one of:
proc loadbuffer(L: PState; buff: string; name: string): cint
first type mismatch at position: 3
required type: string
What does it do? Allow you to call lua from it, AFAICS.
Though i suppose exporting might also be interesting to do.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.