This file documents all notable changes to Peggy.
Released: TBD
location()
s now will have additionalsource
property which value is taken from theoptions.grammarSource
property. That property can contain arbitrary data,for example, path to the currently parsed file. @Mingun
- #112:
"group"
node in the AST now havelocation
information (back-ported)
Released: 2021-04-22
- Added global initializer blocks, which contain code that is only run once
when the grammar is loaded, rather than once every time the parser runs.
Global initializers are surrounded by
{{
and}}
, and must come before the per-parser initializer, which is surrounded by{
and}
. @jaubourg - Back-ported value plucking with
@
from pegjs head. If your rule has a simple action that returns one or more of the values matched by the rule, you can instead mark those expressions with@
and not need an action. This works inside of parens as well. @hildjj
- #10: Better docs for parser options
- #40: Turn on eslint prefer-const
- #58: Release script didn't push tag correctly
- #61: Replace download link with new one in doc (partial fix)
- #71: Readme doesn't include "es" format
- #72: Generated code has wrong version number
Released: 2021-04-16
First release
See previous project for PEG.js changes