Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 493 Bytes

prsc.parser.md

File metadata and controls

15 lines (9 loc) · 493 Bytes

Home > prsc > Parser

Parser type

A parser is a function that tries to match whatever it expects at the given offset in the input string. Returns a ParseResult.

Signature:

export declare type Parser<T> = (input: string, offset: number) => ParseResult<T>;

References: ParseResult