Parser Combinators
- "{ greeting: "Hello", who: "world" }The string "Hello, world!
- " parses into an object with greeting "Hello", who "world".type Parser<T> = (input: string) => [T, string]["pIntegernumber10, "string 20 30"]The type Parser of T is a function from an input string to a pair of a T and the rest of the string.
Unverified
- "{ greeting: "Hello", who: "world" }The string "Hello, world!
- " parses into an object with greeting "Hello", who "world".type Parser<T> = (input: string) => [T, string]["pIntegernumber10, "string 20 30"]The type Parser of T is a function from an input string to a pair of a T and the rest of the string.
Sources: T3