A good place to start would be in the manually written example. [1] My current plan is to try and limit the the use of memoization such that it still guarantees linear parsing, but it doesn't memoize unless necessary.
[1]: https://github.com/pest-parser/pest/blob/master/pest/example...