Skip to content

An experimental TypeScript parser combinator library. Powered by template literal types(TS 4.1+).

License

Notifications You must be signed in to change notification settings

todesking/typesafe_parser

Repository files navigation

Experimental type level parser combinator library for TypeScript 4.1

const parser_ab = rep0(read('a', 'b'))

// [parse result, not consumed input]
const abab_x: ['abab', 'x'] = parse(parser_ab, 'ababx', {})

See tests for usage.

解説記事

About

An experimental TypeScript parser combinator library. Powered by template literal types(TS 4.1+).

Resources

License

Stars

Watchers

Forks