ZScript is the scripting language for ZQuest Classic. The ZScript compiler is implemented here. The parser uses flex/bison and the codegen (to ZASM, the bytecode that runs in the game engine) is C++. The language can be explored in the web playground.
This repo has two things:
grammar/contains a PEG (Parsing expression grammar) for ZScript, along with scripts to validate the PEG grammar with the real compiler.zig/contains a barely-baked reimplementation of the ZScript compiler in Zig. Currently it's barely more than a lexer.