UNPKG

@scinorandex/sparse

Version:

Yet another parser generator

4 lines (2 loc) 162 B
import { GrammarToken } from "src/grammarParser"; export type Result<T> = { success: true; value: T } | { success: false; reason: string; token: GrammarToken };