1
0
mirror of https://github.com/fluencelabs/lalrpop synced 2025-03-30 23:11:04 +00:00
Markus Westerlind 80603e1e28 fix: Perform all reductions before shifting in error recovery
This fixes a problem in the newly added calculator7 test where error recovery would remove everything before the comma in `22 * 44 + 66, *3` as there would be no shift at that point. By first reducing the first expression the parser ends up in a state which properly has recovery installed and parsing can resume
2016-11-22 22:36:10 +01:00

13 lines
340 B
TOML

[package]
name = "calculator"
version = "0.12.0"
authors = ["Niko Matsakis <niko@alum.mit.edu>"]
build = "build.rs" # <-- We added this and everything after!
workspace = "../.."
[build-dependencies]
lalrpop = { version = "0.12.0", path = "../../lalrpop" }
[dependencies]
lalrpop-util = { version = "0.12.0", path = "../../lalrpop-util" }