{"id":20506399,"url":"https://github.com/chaosunity/ebnf","last_synced_at":"2025-10-14T12:49:16.018Z","repository":{"id":57622966,"uuid":"471101147","full_name":"ChAoSUnItY/ebnf","owner":"ChAoSUnItY","description":"A successor bnf parsing library of bnf parsing library, for parsing Extended Backus–Naur form context-free grammars","archived":false,"fork":false,"pushed_at":"2025-09-17T18:04:53.000Z","size":30,"stargazers_count":14,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T09:12:18.020Z","etag":null,"topics":["ebnf","ebnf-syntax","parser","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ChAoSUnItY.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,"zenodo":null}},"created_at":"2022-03-17T18:38:20.000Z","updated_at":"2025-09-17T18:04:57.000Z","dependencies_parsed_at":"2025-04-13T21:38:14.382Z","dependency_job_id":null,"html_url":"https://github.com/ChAoSUnItY/ebnf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChAoSUnItY/ebnf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChAoSUnItY%2Febnf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChAoSUnItY%2Febnf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChAoSUnItY%2Febnf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChAoSUnItY%2Febnf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChAoSUnItY","download_url":"https://codeload.github.com/ChAoSUnItY/ebnf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChAoSUnItY%2Febnf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018577,"owners_count":26086579,"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-14T02:00:06.444Z","response_time":60,"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":["ebnf","ebnf-syntax","parser","rust"],"created_at":"2024-11-15T19:56:49.669Z","updated_at":"2025-10-14T12:49:16.012Z","avatar_url":"https://github.com/ChAoSUnItY.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ebnf\n\n[![Crates.io](https://img.shields.io/crates/v/ebnf)](https://crates.io/crates/ebnf)\n[![Docs](https://docs.rs/ebnf/badge.svg)](https://docs.rs/ebnf/)\n[![.github/workflows/push.yml](https://github.com/ChAoSUnItY/ebnf/actions/workflows/push.yml/badge.svg)](https://github.com/ChAoSUnItY/ebnf/actions/workflows/push.yml)\n\n\u003e A successor bnf parsing library of bnf parsing library, for parsing Extended Backus–Naur form context-free grammars\n\nThe code is available on [GitHub](https://github.com/ChAoSUnItY/ebnf)\n\n## Disclaimer:\nThere are various variants of EBNF, which uses somewhat different syntactic conventions. This library \ntakes [EBNF Evaluator](https://mdkrajnak.github.io/ebnftest/)'s example code as standard, which has \nalmost most syntactic conventions on Wikipedia's page.\n\n## What does a valid EBNF grammar looks like?\n\nThe following example is taken from EBNF Evaluator:\n\n```ebnf\nfilter ::= ( first ' ' )? ( number '~ ' )? ( number '-' number ) ( ' ' number '~' )? ( ' hz' )? ( ' b' )? ( ' i' )? ( ' a' )?;\nfirst  ::= #'[a-za-z][a-za-z0-9_+]*';\nnumber ::= digits ( ( '.' | ',' ) digits? )?;\ndigits ::= #'[0-9]+';\n```\n\n## How to use this library?\n\n```rust\nextern crate ebnf;\n\nfn main() {\n    let source = r\"\n        filter ::= ( first ' ' )? ( number '~ ' )? ( number '-' number ) ( ' ' number '~' )? ( ' hz' )? ( ' b' )? ( ' i' )? ( ' a' )?;\n        first  ::= #'[a-za-z][a-za-z0-9_+]*';\n        number ::= digits ( ( '.' | ',' ) digits? )?;\n        digits ::= #'[0-9]+';\n    \";\n\n    let result = ebnf::get_grammar(source);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaosunity%2Febnf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaosunity%2Febnf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaosunity%2Febnf/lists"}