module /** */ import { ParsingState } from "../state" ; import { ResultKind } from "../result" ; import { Parjser } from "../parjser" ; import { ParjserBase } from "../parser" ; /**
 * Returns a parser that yields the current user state object. It always succeeds.
 */ export function state ( ) { return new class State extends ParjserBase { type = "state" ; expecting = "expecting anything" ; _apply ( ps ) { ps . value = ps . userState ; ps . kind = ResultKind . Ok ; } } ( ) ; }