{"id":13439950,"url":"https://github.com/lalrpop/lalrpop","last_synced_at":"2025-05-13T15:07:09.821Z","repository":{"id":33688345,"uuid":"37341121","full_name":"lalrpop/lalrpop","owner":"lalrpop","description":"LR(1) parser generator for Rust","archived":false,"fork":false,"pushed_at":"2025-04-29T18:30:35.000Z","size":11985,"stargazers_count":3222,"open_issues_count":163,"forks_count":298,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-05-06T11:35:11.294Z","etag":null,"topics":["grammar","parser-generator","rust"],"latest_commit_sha":null,"homepage":"http://lalrpop.github.io/lalrpop/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lalrpop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2015-06-12T19:41:37.000Z","updated_at":"2025-05-06T08:07:59.000Z","dependencies_parsed_at":"2023-02-17T04:45:24.223Z","dependency_job_id":"3d34aea1-356f-4614-8673-89668d0dbf93","html_url":"https://github.com/lalrpop/lalrpop","commit_stats":{"total_commits":1104,"total_committers":140,"mean_commits":7.885714285714286,"dds":"0.47644927536231885","last_synced_commit":"22aff1bfb3723eceb5632ab86d8f59fdcfd40636"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalrpop%2Flalrpop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalrpop%2Flalrpop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalrpop%2Flalrpop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lalrpop%2Flalrpop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lalrpop","download_url":"https://codeload.github.com/lalrpop/lalrpop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253497296,"owners_count":21917683,"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","parser-generator","rust"],"created_at":"2024-07-31T03:01:18.433Z","updated_at":"2025-05-13T15:07:09.796Z","avatar_url":"https://github.com/lalrpop.png","language":"Rust","funding_links":[],"categories":["Libraries","Rust","库 Libraries","库","rust"],"sub_categories":["Parsing","Parser","解析 Parsing","解析","Other dialects and variants"],"readme":"# LALRPOP\n\n[![Join the chat at https://gitter.im/lalrpop/Lobby](https://badges.gitter.im/lalrpop/Lobby.svg)](https://gitter.im/lalrpop/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n[![Deploy](https://github.com/lalrpop/lalrpop/actions/workflows/deploy.yml/badge.svg)](https://github.com/lalrpop/lalrpop/actions/workflows/deploy.yml)\n\nLALRPOP is a Rust parser generator framework with *usability* as its\nprimary goal. You should be able to write compact, DRY, readable\ngrammars. To this end, LALRPOP offers a number of nifty features:\n\n0. Nice error messages in case parser constructor fails.\n1. Macros that let you extract common parts of your grammar. This\n   means you can go beyond simple repetition like `Id*` and define\n   things like `Comma\u003cId\u003e` for a comma-separated list of identifiers.\n2. Macros can also create subsets, so that you easily do something\n   like `Expr\u003c\"all\"\u003e` to represent the full range of expressions, but\n   `Expr\u003c\"if\"\u003e` to represent the subset of expressions that can appear\n   in an `if` expression.\n3. Builtin support for operators like `*` and `?`.\n4. Compact defaults so that you can avoid writing action code much of the\n   time.\n5. Type inference so you can often omit the types of nonterminals.\n\nDespite its name, LALRPOP in fact uses LR(1) by default (though you\ncan opt for LALR(1)), and really I hope to eventually move to\nsomething general that can handle all CFGs (like GLL, GLR, LL(\\*),\netc).\n\n### Documentation\n\n[The LALRPOP book] covers all things LALRPOP -- or at least it intends\nto! Here are some tips:\n\n- The [tutorial] covers the basics of setting up a LALRPOP parser.\n- For the impatient, you may prefer the [quick start guide] section, which describes\n  how to add LALRPOP to your `Cargo.toml`.\n- Returning users of LALRPOP may benefit from the [cheat sheet].\n- The [advanced setup] chapter shows how to configure other aspects of LALRPOP's\n  preprocessing.\n- docs.rs API documentation for [lalrpop](https://docs.rs/lalrpop/latest/lalrpop/) and [lalrpop-util]\n- If you have any questions join our [gitter lobby].\n\n### Example Uses\n\n- [LALRPOP] is itself implemented in LALRPOP.\n- [Gluon] is a statically typed functional programming language.\n- [RustPython] is Python 3.5+ rewritten in Rust\n- [Solang] is Ethereum Solidity rewritten in Rust\n\n[The LALRPOP book]: https://lalrpop.github.io/lalrpop/\n[quick start guide]: https://lalrpop.github.io/lalrpop/quick_start_guide.html\n[advanced setup]: https://lalrpop.github.io/lalrpop/advanced_setup.html\n[cheat sheet]: https://lalrpop.github.io/lalrpop/cheatsheet.html\n[tutorial]: https://lalrpop.github.io/lalrpop/tutorial/index.html\n[LALRPOP]: https://github.com/lalrpop/lalrpop/blob/master/lalrpop/src/parser/lrgrammar.lalrpop\n[Gluon]: https://github.com/gluon-lang/gluon/blob/master/parser/src/grammar.lalrpop\n[RustPython]: https://github.com/RustPython/Parser/blob/main/parser/src/python.lalrpop\n[Solang]: https://github.com/hyperledger/solang/blob/main/solang-parser/src/solidity.lalrpop\n[gitter lobby]: https://gitter.im/lalrpop/Lobby\n[lalrpop-util]: https://docs.rs/lalrpop-util/latest/lalrpop_util/\n\n### Contributing\n\nYou **really** should read `CONTRIBUTING.md` if you intend to change LALRPOP's own grammar.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalrpop%2Flalrpop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flalrpop%2Flalrpop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flalrpop%2Flalrpop/lists"}