{"id":19253219,"url":"https://github.com/lark-parser/lark_cython","last_synced_at":"2025-02-23T17:12:30.445Z","repository":{"id":43082210,"uuid":"452209546","full_name":"lark-parser/lark_cython","owner":"lark-parser","description":"Cython plugin for Lark, reimplementing the LALR parser \u0026 lexer for better performance","archived":false,"fork":false,"pushed_at":"2024-02-25T06:36:58.000Z","size":47,"stargazers_count":44,"open_issues_count":7,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-01T09:39:46.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Cython","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/lark-parser.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"lark-parser","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-01-26T09:13:29.000Z","updated_at":"2024-06-21T17:38:37.249Z","dependencies_parsed_at":"2024-02-25T07:39:34.273Z","dependency_job_id":null,"html_url":"https://github.com/lark-parser/lark_cython","commit_stats":{"total_commits":44,"total_committers":6,"mean_commits":7.333333333333333,"dds":"0.43181818181818177","last_synced_commit":"fffa767af10c7be7ec7483f485f69cc61963c106"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lark-parser%2Flark_cython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lark-parser%2Flark_cython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lark-parser%2Flark_cython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lark-parser%2Flark_cython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lark-parser","download_url":"https://codeload.github.com/lark-parser/lark_cython/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240347980,"owners_count":19787237,"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":[],"created_at":"2024-11-09T18:29:50.045Z","updated_at":"2025-02-23T17:12:30.424Z","avatar_url":"https://github.com/lark-parser.png","language":"Cython","funding_links":["https://github.com/sponsors/lark-parser"],"categories":[],"sub_categories":[],"readme":"# Lark-Cython\n\nCython plugin for [Lark](https://github.com/lark-parser/lark), reimplementing the LALR parser \u0026amp; lexer for better performance on CPython.\n\nInstall:\n\n```python\npip install lark-cython\n```\n\nUsage:\n\n```python\nimport lark_cython\n\nparser = Lark(grammar, parser=\"lalr\", _plugins=lark_cython.plugins)\n\n# Use Lark as you usually would, with a huge performance boost\n```\n\nSee the [examples](https://github.com/lark-parser/lark_cython/tree/master/examples) for more.\n\n\n## Differences from Lark\n\n- `Token` instances do not inherit from `str`. You must use the `value` attribute to get the string.\n\n## Other caveats\n\n- Postlexer isn't currently implemented\n\n## Speed\n\nIn current benchmarks, lark-cython is about 50% to 80% faster than Lark.\n\nWe're still in the early stages, and in the future, lark-cython might go a lot faster.\n\n## Other\n\nLicense: MIT\n\nAuthor: [Erez Shinan](https://github.com/erezsh/)\n\nSpecial thanks goes to [Datafold](https://github.com/datafold) for commissioning the draft for lark-cython, and allowing me to release it as open-source.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flark-parser%2Flark_cython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flark-parser%2Flark_cython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flark-parser%2Flark_cython/lists"}