Yusyuriv / Afterbirth-API-for-ZeroBrane

MIT License
12 stars 1 forks source link

Creation of API #3

Open teamdodo opened 6 years ago

teamdodo commented 6 years ago

Not an issue but a curiosity: how is your code generated automatically from official docs?

Yusyuriv commented 6 years ago

I wrote a JavaScript script that runs in Node.js. It parses HTML files using cheerio and outputs it all in Lua, in format that ZeroBrane uses for describing custom APIs.

teamdodo commented 6 years ago

Thanks. Why don't you publish it? It can only be used to update the autocompletion file in case of changes to Afterbirth API, isn't it?

Yusyuriv commented 6 years ago

To be honest, I thought about it from the beginning, and decided not to post it simply because I'm ashamed of the code quality.

teamdodo commented 6 years ago

But it works and in case of changes to the API it would be useful. Maybe the code quality is not the best possible but is surely better than writing something similar from scratch.

Zamiell commented 5 years ago

Can you post it? I need the parser for a similar project, making a VSCode extension for autocomplete.