Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/lambdapi/src/deps.ts>Either

Deno TypeScript implementation of LambdaPi interpreter from "A Tutorial Implementation of a Dependently Typed Lambda Calculus" https://www.andres-loeh.de/LambdaPi/
Latest
function Either
import { Either } from "https://deno.land/x/lambdapi@v1.0.1/src/deps.ts";

Either runs the first parser, and then if it fails, runs the second parser. The first and second parsers must be the same type.

Parameters

left: Parser<A, B>
right: Parser<A, B>

Returns

Parser<A, B>