{"id":16438817,"url":"https://github.com/ghettovoice/abnf","last_synced_at":"2025-03-21T04:33:05.650Z","repository":{"id":142301736,"uuid":"564757524","full_name":"ghettovoice/abnf","owner":"ghettovoice","description":"Package abnf generates parsers from ABNF grammar (RFC 5234, RFC 7405).","archived":false,"fork":false,"pushed_at":"2024-09-09T06:27:57.000Z","size":74,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T09:06:28.769Z","etag":null,"topics":["abnf"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ghettovoice.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":"2022-11-11T12:32:38.000Z","updated_at":"2024-09-04T07:30:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"dbef6760-50ef-4be9-9bb6-7ef71267f3d0","html_url":"https://github.com/ghettovoice/abnf","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghettovoice%2Fabnf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghettovoice%2Fabnf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghettovoice%2Fabnf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghettovoice%2Fabnf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghettovoice","download_url":"https://codeload.github.com/ghettovoice/abnf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811548,"owners_count":16884366,"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":["abnf"],"created_at":"2024-10-11T09:06:28.045Z","updated_at":"2024-10-28T09:25:33.982Z","avatar_url":"https://github.com/ghettovoice.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# abnf\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/ghettovoice/abnf.svg)](https://pkg.go.dev/github.com/ghettovoice/abnf)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ghettovoice/abnf)](https://goreportcard.com/report/github.com/ghettovoice/abnf)\n[![Tests](https://github.com/ghettovoice/abnf/actions/workflows/test.yml/badge.svg)](https://github.com/ghettovoice/abnf/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/ghettovoice/abnf/badge.svg?branch=master)](https://coveralls.io/github/ghettovoice/abnf?branch=master)\n[![CodeQL](https://github.com/ghettovoice/abnf/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/ghettovoice/abnf/actions/workflows/github-code-scanning/codeql)\n\nPackage `abnf` implements ABNF grammar as described in [RFC 5234](https://www.rfc-editor.org/rfc/rfc5234) \nand [RFC 7405](https://www.rfc-editor.org/rfc/rfc7405).\n\nInspired by:\n\n- https://github.com/declaresub/abnf\n- https://github.com/elimity-com/abnf\n\n## Installation\n\nAdd `abnf` package and all subpackages to your project:\n\n```bash\ngo get github.com/ghettovoice/abnf@latest\n```\n\n## Usage\n\nBuild a rule from basic operators:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/ghettovoice/abnf\"\n)\n\nvar abc = abnf.Concat(\n    `\"a\" \"b\" *\"cd\"`,\n    abnf.Literal(`\"a\"`, []byte(\"a\")),\n    abnf.Literal(`\"b\"`, []byte(\"b\")),\n    abnf.Repeat0Inf(`*\"cd\"`, abnf.Literal(`\"cd\"`, []byte(\"cd\"))),\n)\n\nfunc main() {\n    var ns abnf.Nodes\n\n    fmt.Println(abc([]byte(\"ab\"), ns[:0]))\n    fmt.Println(abc([]byte(\"abcd\"), ns[:0]))\n    fmt.Println(abc([]byte(\"abcdcd\"), ns[:0]))\n}\n```\n\n## CLI\n\nCheckout `abnf` CLI [README](./cmd/abnf/README.md).\n\n## License\n\nMIT License - see [LICENSE](./LICENSE) file for a full text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghettovoice%2Fabnf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghettovoice%2Fabnf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghettovoice%2Fabnf/lists"}