Socket
Socket
Sign inDemoInstall

flunc-grammar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flunc-grammar - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

example.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc