Comparing version 0.6.12 to 0.6.13
@@ -16,2 +16,7 @@ # Changelog | ||
# 0.6.13 | ||
- **New Feature** | ||
- expose test helper run in library, #34 (@waynevanson) | ||
# 0.6.12 | ||
@@ -18,0 +23,0 @@ |
@@ -9,2 +9,3 @@ /** | ||
import * as P from './Parser' | ||
import * as PR from './ParseResult' | ||
/** | ||
@@ -100,1 +101,9 @@ * Matches the exact string provided. | ||
export declare const doubleQuotedString: P.Parser<string, String> | ||
/** | ||
* @summary | ||
* Creates a stream from `string` and runs the parser. | ||
* | ||
* @category combinators | ||
* @since 0.6.8 | ||
*/ | ||
export declare function run(string: string): <A>(p: P.Parser<C.Char, A>) => PR.ParseResult<C.Char, A> |
@@ -7,2 +7,3 @@ import * as E from 'fp-ts/Either'; | ||
import * as P from './Parser'; | ||
import * as S from './Stream'; | ||
// ------------------------------------------------------------------------------------- | ||
@@ -121,1 +122,11 @@ // constructors | ||
export var doubleQuotedString = P.surroundedBy(C.char('"'))(many(P.either(string('\\"'), function () { return C.notChar('"'); }))); | ||
/** | ||
* @summary | ||
* Creates a stream from `string` and runs the parser. | ||
* | ||
* @category combinators | ||
* @since 0.6.8 | ||
*/ | ||
export function run(string) { | ||
return function (p) { return p(S.stream(string.split(''))); }; | ||
} |
@@ -9,2 +9,3 @@ /** | ||
import * as P from './Parser' | ||
import * as PR from './ParseResult' | ||
/** | ||
@@ -100,1 +101,9 @@ * Matches the exact string provided. | ||
export declare const doubleQuotedString: P.Parser<string, String> | ||
/** | ||
* @summary | ||
* Creates a stream from `string` and runs the parser. | ||
* | ||
* @category combinators | ||
* @since 0.6.8 | ||
*/ | ||
export declare function run(string: string): <A>(p: P.Parser<C.Char, A>) => PR.ParseResult<C.Char, A> |
@@ -16,2 +16,3 @@ "use strict"; | ||
var P = __importStar(require("./Parser")); | ||
var S = __importStar(require("./Stream")); | ||
// ------------------------------------------------------------------------------------- | ||
@@ -131,1 +132,12 @@ // constructors | ||
exports.doubleQuotedString = P.surroundedBy(C.char('"'))(exports.many(P.either(exports.string('\\"'), function () { return C.notChar('"'); }))); | ||
/** | ||
* @summary | ||
* Creates a stream from `string` and runs the parser. | ||
* | ||
* @category combinators | ||
* @since 0.6.8 | ||
*/ | ||
function run(string) { | ||
return function (p) { return p(S.stream(string.split(''))); }; | ||
} | ||
exports.run = run; |
{ | ||
"name": "parser-ts", | ||
"version": "0.6.12", | ||
"version": "0.6.13", | ||
"description": "String parser combinators for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122640
3954