- BREAKING:
parser.empty
is now a function (parser.empty()
) Parsimmon.Parser.empty()
is a copy ofparser.empty()
- Adds
Parsimmon.isParser
- Documentation for
Parsimmon.formatError
- Adds
browser
field topackage.json
so unpkg serves the correct file. - Documentation overhaul in
README.md
. - Examples overhaul.
P.regex
is now an alias forP.regexp
.P.seqMap
now throws when passed zero arguments, or when the final argument is not a function.
P.regex
throws on regexps with flags other thanimu
now.
- Optimizes internal set union function, which should result in slightly faster parsing
- The
.expected
array on parse results is now unique and sorted - Updated Mocha and Chai versions
- Updated README a bit (mostly line wrapping stuff)
- No API changes
- Switches to npm-based task running
- Switches to UMD-based code
- Documentation updates
- Adds line/column information to
P.index
and.mark()
- Adds additional type assertions
This release may have been unpublished or something, I'm not exactly sure.
- add a second optional argument to
regex()
indicating group selection - eliminates pjs dependency
- add seqMap, oneOf, and noneOf
- Added .custom, .test, and .takeWhile for folks who don't like to use regexes.
- Added
.desc()
for custom parse error messages
- breaking: deprecated use of
.then(function(result) { ... })
. Usechain
instead. - breaking: errors are no longer thrown on invalid parses. Instead,
.parse(str)
returns an object with astatus
tag, indicating whether the parse was successful.
- never throw strings, always throw error objects
- add the MIT license
- add browser files to the npm package
- started updating the changelog again :x
- breaking from 0.2.x:
seq
andalt
now take varargs instead of a single list argument.
- Uses less stack space with a non-cps implementation
- Added
Parsimmon.index
andParser::mark()
- fantasyland compatibility
- Better error messages: use the message from the furthest backtrack.
- Fix a "build directory nonexistent" bug :\
- Started a CHANGELOG
- Specify pjs 3.x
- added "use strict"
- Stopped trying to subclass Error (was silencing all parse errors :\ )
(Note: v0.0.3 is completely b0rken, and was unpublished from npm)