For more complicated examples see the official example repository or the demo page.
This directory contains the command-line calculator that is described in the introductory tutorial:
dart petitparser/example/calc.dart "1 + 2 * 3"