module /** */ import { ResultKind } from "../result" ; import { ParsingState } from "../state" ; import { Parjser } from "../parjser" ; import { ParjserBase } from "../parser" ; param value export function result < T > ( value ) { return new class Result extends ParjserBase { expecting = "expecting anything" ; type = "result" ; _apply ( ps ) { ps . value = value ; ps . kind = ResultKind . Ok ; } } ( ) ; }