LR(1) parser generator for Rust http://lalrpop.github.io/lalrpop/
  • Rust 99.9%
  • Shell 0.1%
Find a file
Cole Faust d72ef07203
Fix remaining issues for #1064 (#1128)
https://github.com/lalrpop/lalrpop/pull/1065
attempted to fix issue #1064, but missed several cases.
This fixes some remaining ones. I'm not 100% confident
I got them all, but it is enough to make my project
compile on the latest LALRPOP.
2026-05-28 15:14:33 +00:00
.config Enable running tests with cargo-nextest (#1069) 2025-07-15 06:58:45 +00:00
.github Benchmarking (#981) 2026-01-15 21:08:36 +00:00
doc Update dependency versions (#1126) 2026-05-21 20:56:51 +00:00
lalrpop Fix remaining issues for #1064 (#1128) 2026-05-28 15:14:33 +00:00
lalrpop-test Fix remaining issues for #1064 (#1128) 2026-05-28 15:14:33 +00:00
lalrpop-util Handle windows path separators based on build os, not target (#1117) 2026-03-10 14:40:21 +00:00
tools Benchmarking (#981) 2026-01-15 21:08:36 +00:00
.clog.toml Update RELEASES.md with clog 2018-10-27 13:44:27 +02:00
.gitattributes Convert all CRLF line endings to LF. 2019-01-10 16:47:50 -05:00
.gitignore Allow <mut name:E> in patterns 2019-08-21 19:24:15 +03:00
.mdl_style.rb Enable mdl markdown linter in CI to lint documentation (#912) 2024-06-24 10:04:16 +00:00
.mdlrc Enable mdl markdown linter in CI to lint documentation (#912) 2024-06-24 10:04:16 +00:00
Cargo.lock Update dependency versions (#1126) 2026-05-21 20:56:51 +00:00
Cargo.toml Update dependency versions (#1126) 2026-05-21 20:56:51 +00:00
CODE_OF_CONDUCT.md add a code of conduct 2018-01-25 05:33:15 -05:00
CONTRIBUTING.md Making sure verify_lalrpop_generates_itself builds lalrpop (#1109) 2026-01-29 14:25:41 +00:00
LICENSE-APACHE Switch license to MIT/Apache2 instead of Unlicense, in an effort to be 2016-01-24 04:52:05 -05:00
LICENSE-MIT Switch license to MIT/Apache2 instead of Unlicense, in an effort to be 2016-01-24 04:52:05 -05:00
README.md Update and fix README links (#968) 2024-10-09 12:31:36 +00:00
RELEASES.md Bump versions and add changelog for 0.23.1 (#1119) 2026-03-11 12:49:18 +00:00
update_lrgrammar.sh Reintroduce in dir fix (#1082) 2025-10-21 03:55:10 +00:00
version.sh Release 0.22.1 (#1032) 2025-01-21 18:32:39 +00:00

LALRPOP

Join the chat at https://gitter.im/lalrpop/Lobby

Deploy

LALRPOP is a Rust parser generator framework with usability as its primary goal. You should be able to write compact, DRY, readable grammars. To this end, LALRPOP offers a number of nifty features:

  1. Nice error messages in case parser constructor fails.
  2. Macros that let you extract common parts of your grammar. This means you can go beyond simple repetition like Id* and define things like Comma<Id> for a comma-separated list of identifiers.
  3. Macros can also create subsets, so that you easily do something like Expr<"all"> to represent the full range of expressions, but Expr<"if"> to represent the subset of expressions that can appear in an if expression.
  4. Builtin support for operators like * and ?.
  5. Compact defaults so that you can avoid writing action code much of the time.
  6. Type inference so you can often omit the types of nonterminals.

Despite its name, LALRPOP in fact uses LR(1) by default (though you can opt for LALR(1)), and really I hope to eventually move to something general that can handle all CFGs (like GLL, GLR, LL(*), etc).

Documentation

The LALRPOP book covers all things LALRPOP -- or at least it intends to! Here are some tips:

  • The tutorial covers the basics of setting up a LALRPOP parser.
  • For the impatient, you may prefer the quick start guide section, which describes how to add LALRPOP to your Cargo.toml.
  • Returning users of LALRPOP may benefit from the cheat sheet.
  • The advanced setup chapter shows how to configure other aspects of LALRPOP's preprocessing.
  • docs.rs API documentation for lalrpop and lalrpop-util
  • If you have any questions join our gitter lobby.

Example Uses

  • LALRPOP is itself implemented in LALRPOP.
  • Gluon is a statically typed functional programming language.
  • RustPython is Python 3.5+ rewritten in Rust
  • Solang is Ethereum Solidity rewritten in Rust

Contributing

You really should read CONTRIBUTING.md if you intend to change LALRPOP's own grammar.