[The API changed](https://github.com/pegjs/pegjs/blob/master/CHANGELOG.md#0100): > The `peg.buildParser` function was renamed to `peg.generate`.