Skip to main content
Module

x/pazza/src/sequence.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/sequence.ts";

Functions

Execute the embedded parser with a specified prefix and suffix.

Execute the "prefix" parse first. If it succeeds, discard its result and execute the following normal parser.

Execute a series of parsers and follow its order. Once a parser fails, the whole parser will fail and return last parsing error.

Execute the normal parser first. If it succeeds, execute the following "suffix" parser and discard the output of the "suffix" parser if succeeds.