{"id":19502347,"url":"https://github.com/zio/zio-parser","last_synced_at":"2025-10-28T14:15:14.499Z","repository":{"id":39902061,"uuid":"409310790","full_name":"zio/zio-parser","owner":"zio","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-17T23:50:16.000Z","size":6326,"stargazers_count":28,"open_issues_count":17,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-23T05:29:27.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zio.dev/zio-parser","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zio.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":"2021-09-22T18:17:04.000Z","updated_at":"2024-05-18T12:26:03.554Z","dependencies_parsed_at":"2023-02-11T23:01:49.215Z","dependency_job_id":"d3e4c7dc-3719-4557-aa9f-526e28af1c84","html_url":"https://github.com/zio/zio-parser","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio%2Fzio-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio%2Fzio-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio%2Fzio-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio%2Fzio-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zio","download_url":"https://codeload.github.com/zio/zio-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250917284,"owners_count":21507561,"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":[],"created_at":"2024-11-10T22:16:09.042Z","updated_at":"2025-10-28T14:15:14.433Z","avatar_url":"https://github.com/zio.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"[//]: # (This file was autogenerated using `zio-sbt-website` plugin via `sbt generateReadme` command.)\n[//]: # (So please do not edit it manually. Instead, change \"docs/index.md\" file or sbt setting keys)\n[//]: # (e.g. \"readmeDocumentation\" and \"readmeSupport\".)\n\n# ZIO Parser\n\nLibrary for constructing parsers and pretty printers based on invertible syntax descriptions\n\n[![Development](https://img.shields.io/badge/Project%20Stage-Development-green.svg)](https://github.com/zio/zio/wiki/Project-Stages) ![CI Badge](https://github.com/zio/zio-parser/workflows/CI/badge.svg) [![Sonatype Releases](https://img.shields.io/nexus/r/https/oss.sonatype.org/dev.zio/zio-parser_3.svg?label=Sonatype%20Release)](https://oss.sonatype.org/content/repositories/releases/dev/zio/zio-parser_3/) [![Sonatype Snapshots](https://img.shields.io/nexus/s/https/oss.sonatype.org/dev.zio/zio-parser_3.svg?label=Sonatype%20Snapshot)](https://oss.sonatype.org/content/repositories/snapshots/dev/zio/zio-parser_3/) [![javadoc](https://javadoc.io/badge2/dev.zio/zio-parser-docs_3/javadoc.svg)](https://javadoc.io/doc/dev.zio/zio-parser-docs_3) [![ZIO Parser](https://img.shields.io/github/stars/zio/zio-parser?style=social)](https://github.com/zio/zio-parser)\n\n## Introduction\n\n[![Zymposium - ZIO Parser](https://i.ytimg.com/vi/DEPpL9LBiyA/maxresdefault.jpg)](https://www.youtube.com/watch?v=DEPpL9LBiyA)\n\n## Installation\n\nStart by adding `zio-parser` as a dependency to your project:\n  \n```scala\nlibraryDependencies += \"dev.zio\" %% \"zio-parser\" % \"0.1.9\"\n```\n\n## Getting Started\n\n```scala\nimport zio.parser.*\n```\n\nDeclare your parsing syntax:\n\n```scala\nval digitSyntax: Syntax[String, Char, Char, Char] = Syntax.digit\n```\n\nParse your string:\n\n```scala\nval result: Either[StringParserError[String], Char] = digitSyntax.parseString(\"1\")\n// result: Either[StringParserError[String], Char] = Right(value = '1')\n```\n\nPretty print the parsing errors:\n\n```scala\nprintln(digitSyntax.parseString(\"Hello\").left.map(_.pretty).merge)\n// Hello\n// ^\n// error: Failure at position 0: not a digit\n//\n```\n\n[//]: # (TODO: Add example section)\n[//]: # (## Example)\n\n## Documentation\n\nLearn more on the [ZIO Parser homepage](https://zio.dev/zio-parser/)!\n\n## Contributing\n\nFor the general guidelines, see ZIO [contributor's guide](https://zio.dev/about/contributing).\n\n## Code of Conduct\n\nSee the [Code of Conduct](https://zio.dev/about/code-of-conduct)\n\n## Support\n\nCome chat with us on [![Badge-Discord]][Link-Discord].\n\n[Badge-Discord]: https://img.shields.io/discord/629491597070827530?logo=discord \"chat on discord\"\n[Link-Discord]: https://discord.gg/2ccFBr4 \"Discord\"\n\n## License\n\n[License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzio%2Fzio-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzio%2Fzio-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzio%2Fzio-parser/lists"}