{"id":17761073,"url":"https://github.com/williams-cs/parsecco","last_synced_at":"2025-10-09T04:46:49.076Z","repository":{"id":42236586,"uuid":"137123188","full_name":"williams-cs/parsecco","owner":"williams-cs","description":"parsecco is a parser combinator library, written in Typescript.","archived":false,"fork":false,"pushed_at":"2023-03-04T02:42:32.000Z","size":729,"stargazers_count":8,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-09T04:46:48.469Z","etag":null,"topics":["parser","parser-combinators","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williams-cs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-12T20:18:35.000Z","updated_at":"2024-10-04T07:03:04.000Z","dependencies_parsed_at":"2025-03-17T21:02:28.149Z","dependency_job_id":null,"html_url":"https://github.com/williams-cs/parsecco","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/williams-cs/parsecco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williams-cs%2Fparsecco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williams-cs%2Fparsecco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williams-cs%2Fparsecco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williams-cs%2Fparsecco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williams-cs","download_url":"https://codeload.github.com/williams-cs/parsecco/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williams-cs%2Fparsecco/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000706,"owners_count":26082921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","parser-combinators","typescript"],"created_at":"2024-10-26T19:19:13.292Z","updated_at":"2025-10-09T04:46:49.060Z","avatar_url":"https://github.com/williams-cs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parsecco\n\nParsecco is a parser combinator library for Typescript. It has no dependencies!\n\n## Features\n\n- Includes many of the parsers you know and love, like `item`, `bind`, and `sat`, but also includes a number of much faster hand-optimized parsers.\n- All parsers are written in _generator-style_, which makes them compatible with cooperative multitasking.\n- Actively maintained. I am happy to accept issues and pull requests!\n\n## Installing\n\nYou can download Parsecco from [NPM](https://www.npmjs.com/package/parsecco). To install it in your NPM project:\n\n```\n$ npm install --save parsecco\n```\n\n## Documentation\n\nWe provide auto-generated [TSDoc](https://tsdoc.org) documentation from the comments that preface every function. I was a little OCD about this-- every function should be well documented. If you find issues with the documentation, please open an issue.\n\n[TSDoc documentation can be found here](https://williams-cs.github.io/parsecco/)\n\n(todo) I plan to add tutorial documentation here in the near future.\n\nIn the meantime, if you are familiar with the [Monadic Parser Combinators](https://www.cs.nott.ac.uk/~pszgmh/monparsing.pdf) paper by Meijer and Hutton, Parsecco is very much in that vein with a few small caveats:\n\n1. I don't use unpronounceable names for parsers (come on, people!). If you don't like my names, too bad.\n2. My `choice` combinator is an _ordered choice_ that returns the first match instead of all matches (in other words, it is `+++` and not `++` in Meijer and Hutton-speak).\n3. TypeScript has no language-level support for lazy evaluation, so recursive grammar definitions need to be forward-declared. See the `recParser` family of functions; these were inspired by [FParsec](https://www.quanttec.com/fparsec/)'s approach.\n\n## Usage Examples\n\nIf you're looking for real-world usage examples, have a look at the [paraformula parser](https://github.com/dbarowy/paraformula) for parsing Microsoft Excel formulas.\n\n## Developer Info\n\nContributions to Parsecco are welcome. If you would like to set up a developer environment, do the following steps:\n\n1. Check out this repository.\n2. Install development dependencies with\n   ```\n   $ npm install\n   ```\n3. Then build the library with\n   ```\n   $ npm run build\n   ```\n\nPlease submit patches by pull request. Be sure that your patch passes all the tests (see below), and if your modification also needs testing, submit additional tests.\n\n## TypeScript and TypeDoc versions\n\nThe current version of Parsecco is was developed and tested with TypeScript 4.2.3 and TypeDoc 0.20.34.\n\n## Test Suite\n\nAn exhaustive test suite comes with Parsecco, and most of the dev dependencies are to the support the library's test suite. You can run the tests with:\n\n```\n$ npm test\n```\n\nYou can run a specific test with\n\n```\n$ npm test -- --grep \"a substring from the 'describe' or 'it' field you want to run\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliams-cs%2Fparsecco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliams-cs%2Fparsecco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliams-cs%2Fparsecco/lists"}