Skip to content
Regular Tetragon edited this page Dec 10, 2021 · 1 revision

Welcome to the microparsel wiki!

Microparsel is a Lua library based around parser combinators, and around the Haskell library Parsec. It's designed to be as compatible as possible. The initial motivation for developing this library is related to the Roblox engine: many chat command languages exist, yet there is not a consistently used way of parsing said languages. The result is dozens of creators making half baked parsers, or just doing the minimum you can get away with. As an example, the game Tetragon Fortress uses a lex'd but not parsed language called Tetragon Shell or "TraSh" where each command re-parses as it goes which is super inefficient and hacky.

Of course, this library is written super generically. Whether you're writing a compiler in Lua for some reason, doing syntax highlighting, or making a command language for your game, this library should apply.

Clone this wiki locally