Skip to main content
Module

x/pazza/mod.ts>withPositionCtx

Parser combinators library designed for Deno, but also works on browsers and Node.js.
Go to Latest
function withPositionCtx
import { withPositionCtx } from "https://deno.land/x/pazza@v0.3.0/mod.ts";

Execute the embedded parser with a new "position context". This parser is required if you're going to use position parser or spanned parser.

Type Parameters

O
E
CtxIn
CtxOut

Parameters

parser: IParser<O, E, string, CtxIn, CtxOut>

embedded parser

Returns

IParser<O, E, string, Omit<CtxIn, positionCtxSymbol>, CtxOut & PositionContext>