Releases: bwrrp/prsc.js
Releases · bwrrp/prsc.js
4.0.0
3.3.0
- Add
dispatchcombinator to select between child parsers by looking at a single code point - Add
sequenceandsequenceConsumedcombinators to make applying parsers one after the other more readable.
Full Changelog: 3.2.0...3.3.0
3.2.0
filternow supports an optionalfatalargument to make errors generated when the filter rejects fatal.
Full Changelog: 3.1.1...3.2.0
3.1.1
- Update dependencies to their latest versions - no functional changes
Full Changelog: 3.1.0...3.1.1
3.1.0
- Add
codepointsparser, which skips code points while the given predicate returns true. This is a more efficient version of combiningcodepointwith eitherstarConsumedorplusConsumed.
Full Changelog: 3.0.2...3.1.0
3.0.2
- Fix filter sometimes overwriting inner parser's expected values
Full Changelog: 3.0.1...3.0.2
3.0.1
- Fix
orhiding a fatal error if another parser made it further
Full Changelog: 3.0.0...3.0.1
3.0.0
This release makes a few changes and adds a few arguments and combinators to allow writing faster parsers.
- Breaking: the
rangeparser no longer returns a value. Combine it withrecognizeif you needed one. codepointallows matching a single character filtered by a predicate function.oraccepts an optionalexpectedargument to avoid combining the expected values from its child parsers.starConsumedandplusConsumedavoid collecting inner parser values into an array.
Full Changelog: 2.1.0...3.0.0
2.1.0
- Fix an infinite loop when the parser given to
stardoes not consume input - Add additional combinators:
consume,exceptandfilterUndefinedas well as basic parsersrangeandskipChars - Add experimental streaming parsers: use
streamingto turn any Parser into a StreamingParser and use the streaming combinators to create generator functions that yield values as they parses the input. - Update devDependencies to their latest versions.
Full Changelog: 2.0.1...2.1.0