japhib / pico8-ls

PICO-8 Language Server
MIT License
69 stars 8 forks source link

Expose a parser as a separate Node.js package to enable 3rd party tools to use it #29

Open beetrootpaul opened 1 year ago

beetrootpaul commented 1 year ago

What I lack in my PICO-8 workflow is a Lua minifier which would support PICO-8 language features. I am aware there are minifiers written in Python (i.e. https://github.com/thisismypassport/shrinko8), but for some reasons I prefer to use JavaScript/TypeScript tooling. If to create such minifier, it would need to do some parsing to AST, which is already implemented in this codebase here.

Therefore, if possible, it would be great to be able to use parser from pico8-ls in such a separate project (as a Node.js dependency) instead of writing one more 🙂


This issues is created in result of https://github.com/japhib/pico8-ls/issues/26#issuecomment-1285990229