{"id":24091414,"url":"https://github.com/zachary822/parser-combinator","last_synced_at":"2026-05-16T03:03:45.416Z","repository":{"id":268204574,"uuid":"903633575","full_name":"zachary822/parser-combinator","owner":"zachary822","description":"Javascript Parser Combinator","archived":false,"fork":false,"pushed_at":"2024-12-18T07:08:11.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T07:50:04.406Z","etag":null,"topics":["deno","parser","typescript"],"latest_commit_sha":null,"homepage":"https://jsr.io/@fun/parser-combinator","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachary822.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-15T05:52:46.000Z","updated_at":"2024-12-18T07:08:15.000Z","dependencies_parsed_at":"2024-12-15T21:20:47.909Z","dependency_job_id":null,"html_url":"https://github.com/zachary822/parser-combinator","commit_stats":null,"previous_names":["zachary822/json-js","zachary822/parser-combinator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachary822%2Fparser-combinator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachary822%2Fparser-combinator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachary822%2Fparser-combinator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachary822%2Fparser-combinator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachary822","download_url":"https://codeload.github.com/zachary822/parser-combinator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240993951,"owners_count":19890419,"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","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":["deno","parser","typescript"],"created_at":"2025-01-10T07:44:01.224Z","updated_at":"2026-05-16T03:03:40.378Z","avatar_url":"https://github.com/zachary822.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Parser Combinator\n\nParser combinator implemented in church encoded types.\n\n## Example\n\nThe library uses a custom `List` type to represent arrays, strings used by the\nparser are lists of characters (`List\u003cstring\u003e`). Use `strToList` to convert\nstring to `List\u003cstring\u003e`.\n\n```typescript\nconst input = strToList(\"abc\");\n\nconst parser = stringP(strToList(\"ab\"));\n\n// result contained in a Maybe type\nconst result = parser(input)(\n  // default return value if parser doesn't match input\n  null, \n  // tuple of remaing input and parse result as javascript strings\n  (r) =\u003e [listToStr(fst(r)), listToStr(snd(r))];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachary822%2Fparser-combinator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachary822%2Fparser-combinator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachary822%2Fparser-combinator/lists"}