The Clock Tower uses a PEG in its parser. It was an experiment that worked pretty well. The source file parser.fnl is the implementation of the parser. test-parser.fnl has some examples of the kinds of syntax that are supported. Day 4 of the dev log has comments on the parser. Day 10 talks about a difficulty caused by one item name (“cat”) being a prefix of another item name (“cat food”).