Comparing version 1.1.0 to 1.1.1
@@ -122,3 +122,3 @@ "use strict"; | ||
if (exit) { | ||
if (exit || nextState[0] >= nextState[1].length) { | ||
break; | ||
@@ -125,0 +125,0 @@ } |
{ | ||
"name": "arcsecond", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -47,6 +47,7 @@ # Arcsecond | ||
- [5.31 mapTo](#mapto) | ||
- [5.32 fail](#fail) | ||
- [5.33 succeedWith](#succeedwith) | ||
- [5.34 toPromise](#topromise) | ||
- [5.35 toValue](#tovalue) | ||
- [5.32 leftMapTo](#leftmapto) | ||
- [5.33 fail](#fail) | ||
- [5.34 succeedWith](#succeedwith) | ||
- [5.35 toPromise](#topromise) | ||
- [5.36 toValue](#tovalue) | ||
- [6. A note on recursive grammars](#a-note-on-recursive-grammars) | ||
@@ -596,3 +597,3 @@ - [7. Fantasy Land](#fantasy-land) | ||
parse (newParser) ('1,2,3') | ||
// -> Either.Left('ParseError \'sepBy1\' (position 0): Expecting to match at least one separated value') | ||
// -> Either.Left([0, 'ParseError \'sepBy1\' (position 0): Expecting to match at least one separated value']) | ||
``` | ||
@@ -637,3 +638,3 @@ | ||
parse (newParser) ('12345') | ||
// -> Either.Left('ParseError \'many1\' (position 0): Expecting to match at least one value') | ||
// -> Either.Left([0, 'ParseError \'many1\' (position 0): Expecting to match at least one value']) | ||
``` | ||
@@ -684,3 +685,3 @@ | ||
parse (newParser) ('This is a sentence.This is another sentence') | ||
// -> Either.Left('ParseError (position 18): Expecting string \'This is another sentence\', got \'.This is another sentenc...\'') | ||
// -> Either.Left([18, 'ParseError (position 18): Expecting string \'This is another sentence\', got \'.This is another sentenc...\'']) | ||
``` | ||
@@ -879,3 +880,3 @@ | ||
parse (newParser) ('asPineapple wayoh') | ||
// -> Either.Left('Unrecognised signifier \'asPineapple\'') | ||
// -> Either.Left([12, 'Unrecognised signifier \'asPineapple\'']) | ||
``` | ||
@@ -937,3 +938,3 @@ | ||
parse (fail ('Nope')) ('hello world') | ||
// -> Either.Left('Nope') | ||
// -> Either.Left([0, 'Nope']) | ||
``` | ||
@@ -940,0 +941,0 @@ |
Sorry, the diff of this file is not supported yet
267384
23
2587
1083