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

x/lambdapi/src/deps.ts>Parse

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

Parse is the type returned by the parse function, which takes an input string cs, a position pos, and the inherited attributes attr passed to the root of the parser, and returns the input string, the updated position, and the result of the parser.

definition: (_: { cs: string; pos: number; attr: A; }) => Result<B>