Grammars suitable for lark parser:
- bc, an arbitrary precision calculator language (
bc.lark) - The GEDCOM Standard (
gedcom.lark) - eqn, language reference for mandoc (
eqn.lark) - ISO 8601, date and time format
iso-8601.lark) - mdoc, semantic markup language for formatting manual pages (
mdoc.lark) - MIME Media Types (
mime.lark) - Lua 5.1 language grammar specification (
lua.lark) - TAP13 - The Test Anything Protocol v13 (
tap13.lark) - Palindrome is a word, number, or
other sequence of characters which reads the same backward as forward, such
as
madamorracecaror the number10801(palindrome.lark) - OpenBSD packet filter configuration file (
pf.lark) phone_number.lark- Postal Address (
postal.lark) - Python 3 language grammar specification (
python3.lark) - POSIX Regular Expressions (
regex.lark) - reStructuredText Markup Syntax (
restructuredtext.lark) - RFC 822: Standard for ARPA Internet Text Messages (
rfc_822.lark) - RFC 1738: Uniform Resource Locators (URL) (WIP) (
rfc_1738.lark) - RFC 2396: Uniform Resource Identifiers (URI) (
rfc_2396.lark) - RFC 2397: The "data" URL scheme (
rfc_2397.lark) - RFC 5545: Internet Calendaring and Scheduling Core Object Specification (iCalendar) (
rfc_5545.lark) - RFC 6531: SMTP Extension for Internationalized Email (WIP) (
rfc_6531.lark) - RFC 5321: Simple Mail Transfer Protocol (WIP) (
rfc_5321.lark) - robots.txt (
robotstxt.lark) - SQLite (
sqlite.lark) - SubUnit v1 - SubUnit v1 protocol specification (
subunit_v1.lark) - Tom's Obvious, Minimal Language (
toml.lark) - YAML: YAML Ain't Markup Language (
yaml.lark)
$ python -m venv venv
$ python -m pytest tests/test_grammars.py
$ pip install lark_grammars
$ cat example.py
from lark_grammars import grammars
grammars.grammar_files['bc']
$ python generate.py --grammar grammars/tap13.lark
TAP version 13
1..861602252
not ok # Skipped
# - C o A 2 1 H