pico8parse

A Lua parser written in JavaScript, with support for the PICO-8 flavour.
Luaparse is originally written by Oskar Schöldström for his bachelor's thesis at Arcada.

This is a fork of the luaparse by Oskar Schöldström (and other).

See the original README or the linked GitHub above for more information about it. If the intention is to use the present JavaScript package, the original README is probably the first thing to look at.

The intention is to add support for the PICO-8 flavour of Lua which brings a few new syntaxes, tokens and a whole file format (all described here).

Note that in v0.2.5d, most of the pre-processor has been replaced with z8lua. This is probably a place to look into for better fidelity (maybe, dunno, but surely).

A Fork of the luaparse

A few changes were made regarding the versions of Lua that were already supported by the original luaparse:

Ideally, no breaking changes were added in regard to the parsing of Lua 5.1, 5.2, 5.3 and LuaJIT. These versions should still behave the same outside of the mentioned points above. Hopefully, this fork would stay up-to-date with its upstream.

Other Mentions and Thanks

The PICO-8 Wikia proved a great help at gathering random information about the API.

As well as the luacheck project and the picotool.

And obviously zep @lexaloffle and their PICO-8 fantasy console.