prim-parser is a total parser combinator library for Lean 4 that uses a graded monad. This blog post describes the library in detail, presents examples and compares it to similar libraries.
PrimParser/: library code.Examples/: example parsers.Tests/:#guard-based compile-time tests.
lake build # build the library
lake build Tests # run the tests