{"id":22166867,"url":"https://github.com/bushero/pevac","last_synced_at":"2026-02-13T12:15:26.072Z","repository":{"id":46761619,"uuid":"401485800","full_name":"BusHero/Pevac","owner":"BusHero","description":"A parser combinator library around the System.Text.Json.Utf8JsonReader class","archived":false,"fork":false,"pushed_at":"2024-09-05T13:51:52.000Z","size":121,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T04:21:28.384Z","etag":null,"topics":["csharp","dotnet5","json","parser","parser-combinators","system-text-json"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BusHero.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-08-30T21:04:42.000Z","updated_at":"2024-09-05T13:51:49.000Z","dependencies_parsed_at":"2025-01-29T21:59:24.465Z","dependency_job_id":null,"html_url":"https://github.com/BusHero/Pevac","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/BusHero/Pevac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FPevac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FPevac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FPevac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FPevac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BusHero","download_url":"https://codeload.github.com/BusHero/Pevac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusHero%2FPevac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274568716,"owners_count":25309283,"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-09-11T02:00:13.660Z","response_time":74,"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":["csharp","dotnet5","json","parser","parser-combinators","system-text-json"],"created_at":"2024-12-02T05:25:49.263Z","updated_at":"2026-02-13T12:15:26.024Z","avatar_url":"https://github.com/BusHero.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pevac ![Some other name that doesn't matter](https://github.com/BusHero/Pevac/actions/workflows/build.yaml/badge.svg)\n\nPevac is a simple, lightweight library for constructing functional, forward only parsers that use [Utf8JsonReader](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.utf8jsonreader) struct as the source of tokens. Parsers can then be used to simplify constuction of custom deserializers for the [System.Text.Json](https://docs.microsoft.com/en-us/dotnet/api/system.text.json). \n\nIt is heavely inspired by the [Sprache](https://github.com/sprache/Sprache) parser combinator library! \n\n## Motivation\nThe scope of the project is to simplify building cusom deserializers for the [System.Text.Json](https://docs.microsoft.com/en-us/dotnet/api/system.text.json) by providing the posibility of building functional parsers that can consume an instance of [Utf8JsonReader](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.utf8jsonreader) struct.\n\nIt is impossible to use the [Utf8JsonReader](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.utf8jsonreader) with any existing parser combinator library because of the limitation imposed on the struct.\n\n* [Utf8JsonReader](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.utf8jsonreader) cannot be specified as a generic parameter.\n* All the interaction with the [Utf8JsonReader](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.utf8jsonreader) struct should be through a reference.\n\n## Usage\n\nUnlike most parser-building frameworks, you use [Pevac](#pevac) directly from your program code, and don't need to set up any build-time code generation tasks. [Pevac](#pevac) itself is a single tiny assembly.\n\n\n[Pevac](#pevac) provides a number of build-in functions that can make bigger parsers from smaller once, often callable via Linq query comprehensions:\n\n```csharp\nParser\u003cFoo\u003e parser = from _ in Parser.StartObject\n                     from propertyName in Parser.PropertyName\n                     from value in Parser.String\n                     from __ in Parser.EndObject\n                     select new Foo(propertyName, value)\n\nvar json = \"{ \\\"foo\\\" : \\\"bar\\\" }\";\nvar bytes = Encoding.UTF8.GetBytes(foo);\nvar reader = new Utf8JsonReader(bytes);\nvar foo = parser.Parse(reader, default);\n\nAssert.AreEqual(new Foo(\"foo\", \"bar\"), foo);\n\n```\n\n## Credits\n\n[![](https://avatars1.githubusercontent.com/u/1999078?v=3\u0026s=200)](https://github.com/sprache/Sprache)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbushero%2Fpevac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbushero%2Fpevac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbushero%2Fpevac/lists"}