"small peg tracer"[1] is really helpful for breaking down a PEGs operation
[1] https://github.com/sogaiu/small-peg-tracer