Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@swarm/ron-grammar

olebedev18MIT0.1.1

A regular grammar for the Swarm Replicated Object Notation

swarm, replicated, ron, grammar, protocol, parser, regex

readme

Regex parsers for the Replicated Object Notation

see protocol docs at https://github.com/gritzko/ron

use:

> const RON=require('swarm-ron-grammar');
> RON.OP.exec('#time-orig`:loc=1"str"')
[ '#id`:l=1"str"',
  '',
  'time-orig',
  '`',
  'loc',
  '=1"str"',
  index: 0,
  input: '#id`:l=1"str"' ]