[DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?
[DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?
Archived author: Honey • Posted: 2024-01-05T11:48:20.614000+00:00
Original source
I'm honestly not sure what you're looking for. Can you give a specific example?
Archived author: functorism • Posted: 2024-01-05T11:51:21.513000+00:00
Original source
I want the lua language server to be aware of the globals defined though the update to the `lua_State* L`. And since there's no supportd tooling for doing that automatically there would have to be some Lua stubs produced to support that. From what I can see in eluna-ts, the TypeScript declarations appear to be handwritten and not generated? Which is more or less the same problem statement.
Archived author: Honey • Posted: 2024-01-05T12:23:27.257000+00:00
Original source
I think <@175631911450836993> was looking into some kind of automation for typescript. Not sure about the Lua part.
Archived author: functorism • Posted: 2024-01-05T12:25:49.490000+00:00
Original source
Alright, well I think something semi automated is probably the way to go for now. Maybe something more declarative can be introduced into the Eluna source to make code generations fo type declarations and stubs easier in the future.
Archived author: Roboto • Posted: 2024-01-05T12:38:53.849000+00:00
Original source
Aye, which could then theoretically be translated to Lua declaration files
Archived author: functorism • Posted: 2024-01-05T12:40:08.990000+00:00
Original source
The TypeScript type defs need strictly more information than the Lua stubs, so if you have some method to parse out the signatures from the header files or docs, then yes it should be easy to generate the Lua stubs.
Archived author: functorism • Posted: 2024-01-05T12:59:10.914000+00:00
Original source
Right now just to get moving forward I created a GPT with all the header files uploaded to it and just ask for stubs for everything I use on a by-need basis.
Archived author: functorism • Posted: 2024-01-05T13:06:26.270000+00:00
Original source
Writing stubs according to https://luals.github.io/wiki/annotations/ works quite well.
[Embed: Lua Language Server | Wiki]
Lua Language Server uses the Language Server Protocol to offer a better Lua development experience for your favourite editors.
https://luals.github.io/wiki/annotations/
Archived author: Foe • Posted: 2024-01-05T14:03:46.208000+00:00
Original source
All the methods are documented with doxygen format, that's how the api is generated
Archived author: Foe • Posted: 2024-01-05T14:04:19.819000+00:00
Original source
You could probably see how this is read and parsed with the documentation generator and output it in another format