bread-n-butter
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,3 +0,7 @@ | ||
# v?.?.? (????-??-??) | ||
# v0.0.2 (2020-07-27) | ||
- Fixes a bug where `parser.many1` was equivalent to `parser.many0` | ||
# v0.0.1 (2020-07-26) | ||
- Initial release |
@@ -151,5 +151,8 @@ "use strict"; | ||
let result = this.action(context); | ||
if (result.type === "ActionFail") { | ||
return result; | ||
} | ||
while (result.type === "ActionOK") { | ||
items.push(result.value); | ||
if (context.location.index === result.location.index) { | ||
if (result.location.index === context.location.index) { | ||
throw new Error("infinite loop detected; don't call many0 or many1 with parsers that can accept zero characters"); | ||
@@ -156,0 +159,0 @@ } |
{ | ||
"name": "bread-n-butter", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Parser combinators for TypeScript and JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/bread-n-butter.js", |
**EXPERIMENTAL: Do not use in production** | ||
# bread-n-butter (Bread 'n Butter) | ||
# bread-n-butter | ||
bread-n-butter (bnb) is a parser combinator library for TypeScript and JavaScript. | ||
bread-n-butter (bnb) is a parser combinator library for JavaScript and | ||
TypeScript. | ||
Read [the documentation](https://wavebeem-bread-n-butter.netlify.app/). |
21124
595
9