{"id":18041306,"url":"https://github.com/ligurio/lark-grammars","last_synced_at":"2025-07-30T22:07:39.418Z","repository":{"id":62575116,"uuid":"178405073","full_name":"ligurio/lark-grammars","owner":"ligurio","description":"Grammars suitable for lark parser and Hypothesis","archived":false,"fork":false,"pushed_at":"2024-03-27T17:04:21.000Z","size":165,"stargazers_count":47,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T18:54:17.666Z","etag":null,"topics":["grammar-fuzzer","grammars","hypothesis","hypothesis-testing","hypothesis-tests","lark","lark-grammars","property-based-testing","quality-assurance","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ligurio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"sergeyb","liberapay":"sergeyb","custom":"https://money.yandex.ru/to/41001707768550"}},"created_at":"2019-03-29T12:53:31.000Z","updated_at":"2025-03-09T00:31:19.000Z","dependencies_parsed_at":"2022-11-03T17:47:21.101Z","dependency_job_id":null,"html_url":"https://github.com/ligurio/lark-grammars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ligurio%2Flark-grammars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ligurio%2Flark-grammars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ligurio%2Flark-grammars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ligurio%2Flark-grammars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ligurio","download_url":"https://codeload.github.com/ligurio/lark-grammars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248072436,"owners_count":21043233,"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":["grammar-fuzzer","grammars","hypothesis","hypothesis-testing","hypothesis-tests","lark","lark-grammars","property-based-testing","quality-assurance","testing"],"created_at":"2024-10-30T15:09:06.664Z","updated_at":"2025-04-09T16:50:24.978Z","avatar_url":"https://github.com/ligurio.png","language":"Python","funding_links":["https://patreon.com/sergeyb","https://liberapay.com/sergeyb","https://money.yandex.ru/to/41001707768550"],"categories":[],"sub_categories":[],"readme":"### lark grammars\n\n[![PyPI version](https://badge.fury.io/py/lark-grammars.svg)](https://badge.fury.io/py/lark-grammars)\n\nGrammars suitable for [lark](https://github.com/lark-parser/lark) parser:\n\n- [bc](https://man.openbsd.org/bc), an arbitrary precision calculator language (```bc.lark```)\n- [The GEDCOM Standard](http://user.it.uu.se/~andersa/gedcom/) (```gedcom.lark```)\n- [eqn](https://man.openbsd.org/eqn), language reference for mandoc (```eqn.lark```)\n- [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html), date and time format ```iso-8601.lark```)\n- [mdoc](https://man.openbsd.org/mdoc.7), semantic markup language for formatting manual pages (```mdoc.lark```)\n- MIME [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml) (```mime.lark```)\n- Lua 5.1 language grammar specification (```lua.lark```)\n- [TAP13](https://testanything.org/tap-version-13-specification.html) - The Test Anything Protocol v13 (```tap13.lark```)\n- [Palindrome](https://en.wikipedia.org/wiki/Palindrome) is a word, number, or\n  other sequence of characters which reads the same backward as forward, such\n  as ```madam``` or ```racecar``` or the number ```10801```\n  (```palindrome.lark```)\n- [OpenBSD packet filter configuration file](https://man.openbsd.org/pf.conf) (```pf.lark```)\n- ```phone_number.lark```\n- Postal Address (```postal.lark```)\n- Python 3 language grammar specification (```python3.lark```)\n- [POSIX Regular Expressions](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html) (```regex.lark```)\n- [reStructuredText Markup Syntax](https://docutils.sourceforge.io/rst.html) (```restructuredtext.lark```)\n- [RFC 822: Standard for ARPA Internet Text Messages](https://www.ietf.org/rfc/rfc822.txt) (```rfc_822.lark```)\n- [RFC 1738: Uniform Resource Locators (URL)](https://www.ietf.org/rfc/rfc1738.txt) (WIP) (```rfc_1738.lark```)\n- [RFC 2396: Uniform Resource Identifiers (URI)](https://www.ietf.org/rfc/rfc2396.txt) (```rfc_2396.lark```)\n- [RFC 2397: The \"data\" URL scheme](https://tools.ietf.org/html/rfc2397) (```rfc_2397.lark```)\n- [RFC 5545: Internet Calendaring and Scheduling Core Object Specification (iCalendar)](https://tools.ietf.org/html/rfc5545) (```rfc_5545.lark```)\n- [RFC 6531: SMTP Extension for Internationalized Email](https://tools.ietf.org/html/rfc6531) (WIP) (```rfc_6531.lark```)\n- [RFC 5321: Simple Mail Transfer Protocol](https://tools.ietf.org/html/rfc5321) (WIP) (```rfc_5321.lark```)\n- [robots.txt](http://www.robotstxt.org/robotstxt.html) (```robotstxt.lark```)\n- SQLite (```sqlite.lark```)\n- [SubUnit v1](https://github.com/testing-cabal/subunit) - SubUnit v1 protocol specification (```subunit_v1.lark```)\n- [Tom's Obvious, Minimal Language](https://github.com/toml-lang/toml) (```toml.lark```)\n- [YAML: YAML Ain't Markup Language](https://yaml.org) (```yaml.lark```)\n\n### How-To Use:\n\n```\n$ python -m venv venv\n$ python -m pytest tests/test_grammars.py\n$ pip install lark_grammars\n$ cat example.py\nfrom lark_grammars import grammars                     \ngrammars.grammar_files['bc'] \n\n$ python generate.py --grammar grammars/tap13.lark\nTAP version 13\n1..861602252\nnot ok # Skipped\n\n# - C o A 2 1 H\n```\n\n### See grammars for other parsers:\n\n- [ANTLR v4](https://github.com/antlr/grammars-v4)\n- [PEG](https://github.com/PhilippeSigaud/Pegged/wiki/Grammar-Examples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fligurio%2Flark-grammars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fligurio%2Flark-grammars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fligurio%2Flark-grammars/lists"}