- Added
SourceOf
type. - Deprecated
Source
type.
- Change exports order in package.json.
- Added
parseA
function. - Added
sepBy
parser. - Added alias
do_
forqo
. - Added
perform.option
,perform.many
andperform.while
inqo
. - Moved option to rollback state if
perform.try
fails toPerformOptions
. - Added defaultValue parameter to
perform.try
. - Using
many
with a parser that does not consume elements no longer causes an infinite loop. anyEl
changed to function.- Renamed
anyEl
,eoi
,codePoint
andanyChar
to camelCase. - Deprecated
Parser.parse
,Parser.and
,Parser.andMap
andParser.or
. - Removed
Parser.many
,Parser.manyAccum
andmanyAccum
.
- Added helper
Perform
type to specify source type inqo
function.
- Add source type parameter to
Parser
. Source
type changed to helper that returns the input type of the parser.
- Added
Parser.prototype.apply
- Added
Parser.prototype.label
- Added
many
- Added
manyAccum
- Added
string
- Added
graphemeString
- Added
CODE_POINT
- Added
ANY_CHAR
- Added
index
anderrors
properties to FailureParseResult.
- Change default for
Parser.prototype.option
to undefined.
Parser.prototype.many
Parser.prototype.manyAccum
- Added
lookAhead
- Added
oneOf
- Added
noneOf
- Added
Parser.prototype.skip
- Added
Parser.prototype.then
- Added
Parser.prototype.andMap
- Added
ParseResult
- Added
perform.try
in qo
- Renamed
seq
option "droppable
" to "allowPartial
". - Change type of
choice
. - Change match algorithm from SameValue to SameValueZero in el and literal.
- Added defaultValue parameter in
regex
. - Change parse result type to
ParseResult
. Parser.prototype.and
now returns the results of both parsers as a tuple. Use "then" or "skip" for the previous use.
RegExpGroupArray
type- Removed
isParseaError
. Useperform.try
instead.
- Added
option
to Parser class. - Added
return
to Parser class. - Added
between
to Parser class.
- Merged
left
andright
intoand
. - Changed return value of
parse
.
- Fixed
regexGroup
not to ignore the start index.