Skip to content

Release 2.0.0-beta-198-0xf954

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Apr 17:55
f95490d

What's Changed

  • Add results/transform function for batteries-included result tree postwalk processing
  • Add results/coerce and results/collect macros for use with transform

Above additions makes that transforming a parse result tree does not have to be reinvented. The addition should be applicable for many use cases, in a succinct manner. The internals of string-grammar have been rewritten to use transform, coerce and collect, another case of eating its own dog food in this library.

  • A comma (,) is now considered whitespace in the string-grammar syntax.
  • The parameter order of success->text and errors->line-column have been updated; the success node now comes first.

Full Changelog: v2.0.0-beta-195-0xb0fc...v2.0.0-beta-198-0xf954