0.1.1 • Published 6 months ago

@texoport/parseme v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Parseme

Warning This library is currently in early development and the API is subject to change. Don't use, even at your own risk.

A parser combinator library inspired by Parsec and Effect-TS.

Installation

npm install @texoport/parseme

Usage

Generator Syntax

const parser = new Parser(function* () {
  const a = yield* char("a")
  const b = yield* char("b")
  return { a, b }
})

const result = parser.run("ab")