Search found 4 matches

by Desty
Wed Nov 07, 2012 5:09 pm
Forum: Support and Development
Topic: Lua auto-complete?
Replies: 24
Views: 13588

Re: Lua auto-complete?

Yes, you can definitely do something like this. In fact, ZeroBrane Studio already includes the API description for Love2d: https://github.com/pkulchenko/ZeroBraneStudio/blob/master/api/lua/love2d.lua; it's not a standalone module, but a structure that ZBS uses to provide auto-complete for love2d AP...
by Desty
Wed Nov 07, 2012 12:46 am
Forum: Support and Development
Topic: Lua auto-complete?
Replies: 24
Views: 13588

Re: Lua auto-complete?

This is indeed because love is a global variable that is set by the environment. I haven't "fixed" this problem in any way, but I wrote my own walker to report the errors the way I'd like to see them. Essentially, it works like this: metalua is used to build Abstract Syntax Tree (AST) for...
by Desty
Mon Nov 05, 2012 8:39 pm
Forum: Support and Development
Topic: Drawing things efficiently - LÖVE internals question
Replies: 8
Views: 4744

Re: Drawing things efficiently - LÖVE internals question

If the goal is to reduce or eliminate the Lua<->C barrier bottleneck, then we should wait until LuaJIT 2.0-final comes out and make LÖVE's API use LuaJIT's FFI wherever possible. :) Looks like that will be possible soon - 2.0 RC1 came out last week. I noticed this: a message polling function might ...
by Desty
Sat Nov 03, 2012 3:00 am
Forum: Support and Development
Topic: Lua auto-complete?
Replies: 24
Views: 13588

Re: Lua auto-complete?

@OmarShehata: you can get this type of analysis (to detect typos) using lua-inspect. I've integrated it into ZeroBrane Studio IDE and it produces this type of report: static analyzer screenshot . You can also get auto-complete, although it cheats a bit and simply does syntax analysis for those clas...