Releases: bwrrp/prsc.js
Releases · bwrrp/prsc.js
4.0.0
3.3.0
- Add
dispatch
combinator to select between child parsers by looking at a single code point - Add
sequence
andsequenceConsumed
combinators to make applying parsers one after the other more readable.
Full Changelog: 3.2.0...3.3.0
3.2.0
filter
now supports an optionalfatal
argument 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
codepoints
parser, which skips code points while the given predicate returns true. This is a more efficient version of combiningcodepoint
with eitherstarConsumed
orplusConsumed
.
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
or
hiding 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
range
parser no longer returns a value. Combine it withrecognize
if you needed one. codepoint
allows matching a single character filtered by a predicate function.or
accepts an optionalexpected
argument to avoid combining the expected values from its child parsers.starConsumed
andplusConsumed
avoid 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
star
does not consume input - Add additional combinators:
consume
,except
andfilterUndefined
as well as basic parsersrange
andskipChars
- Add experimental streaming parsers: use
streaming
to 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