Skip to main content
Module

x/pazza/src/combinator.ts

Parser combinators library designed for Deno, but also works on browsers and Node.js.
Go to Latest
import * as pazza from "https://deno.land/x/pazza@v0.3.0/src/combinator.ts";

Functions

Execute the embedded parser. If it succeeds, apply provided function on the output.

Execute the embedded parser. If it fails, apply provided function on the error.

Execute the embedded parser. If it succeeds, return its value. If it fails, return null with a successful result.

Pick next character from input and pass it to provided predicate. If the predicate passes, return a successful parsing result with that character. If not, return a parsing error.