{"library":"typescript-parsec","type":"library","category":null,"description":"typescript-parsec is a parser combinator library designed for TypeScript, allowing developers to construct parsers quickly with a concise API. It provides utilities for lexing (tokenizing input) and parsing (defining grammar rules) using a functional, combinatory approach. As of version 0.3.4, it is still in a pre-1.0 development phase, meaning API stability might evolve, though it has been maintained by Microsoft. The library's release cadence is not strictly defined, but updates occur periodically based on needs and contributions to the underlying Microsoft research projects. It differentiates itself by being explicitly typed for TypeScript, offering robust type inference and safety for parser definitions, making it suitable for building language front-ends directly within a TypeScript codebase. Its focus is on developer experience, providing a clear and efficient way to define complex grammars with strong type guarantees, leveraging the TypeScript ecosystem effectively.","language":"javascript","status":"maintenance","version":"0.3.4","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typescript-parsec","imports":["import { buildLexer } from 'typescript-parsec';","import { rule } from 'typescript-parsec';","import { alt, seq, apply } from 'typescript-parsec';"]},{"cmd":"yarn add typescript-parsec","imports":[]},{"cmd":"pnpm add typescript-parsec","imports":[]}],"homepage":null,"github":"https://github.com/microsoft/ts-parsec","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typescript-parsec","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typescript-parsec/compatibility"}}