Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.96 KB

CHANGELOG.md

File metadata and controls

56 lines (37 loc) · 1.96 KB

Change Log

This file documents all notable changes to Peggy.

1.2.0

Released: TBD

Minor Changes

  • location()s now will have additional source property which value is taken from the options.grammarSource property. That property can contain arbitrary data,for example, path to the currently parsed file. @Mingun

Bug fixes

  • #112: "group" node in the AST now have location information (back-ported)

1.1.0

Released: 2021-04-22

Major Changes

  • 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

Bug fixes

  • #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

1.0.0

Released: 2021-04-16

Major Changes

First release

Previous history

See previous project for PEG.js changes