Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

regular-grammar

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regular-grammar

A simple regular grammar/parser generator

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Simple regular grammar parser generator

The Swarm protocol evolved since 2012 in more or less the same direction, gradually becoming richer and richer. Things became a bit hairy last November (2016) once object metadata structure was unified and made part of the protocol. This weekend (11 Feb 2017) I finally realized how to write production rules in a concise way (see index.js). As a result, 20 rather simple rules described the entire syntax.

By the Chomsky–Schützenberger hierarchy, Swarm is a regular language. Hence, it is parsed by regular expressions.

This package exports the Grammar class that converts simple grammar definitions into regex parsers.

Keywords

FAQs

Package last updated on 08 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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