flunc-grammar
Advanced tools
Comparing version 0.0.1 to 0.0.2
const | ||
{ adapt, alpha, bind, eof, integral, many, parse, print, replicate, seqL } = require('.'), | ||
{ adapt, alpha, bind, eof, integer, many, parse, print, replicate, seqL } = require('.'), | ||
{ charListToStr } = require('./isos'); | ||
@@ -7,3 +7,3 @@ | ||
const nChars = seqL(many(bind( | ||
integral, | ||
integer, | ||
n => adapt(charListToStr, replicate(n, alpha)), | ||
@@ -10,0 +10,0 @@ s => s.length |
@@ -144,3 +144,3 @@ const | ||
// A Grammar that matches an positive or negative integer value | ||
const integral = adapt( | ||
const integer = adapt( | ||
compose(iso( | ||
@@ -176,3 +176,3 @@ t => { | ||
failure, | ||
integral, | ||
integer, | ||
literal, | ||
@@ -179,0 +179,0 @@ many, |
{ | ||
"name": "flunc-grammar", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A grammar combinator library for creating parsers and printers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
30189