Skip to content

Commit 4821ccf

Browse files
committed
Fix union, clean up expressions, add expected tokens
This works only on my patched version of Happy. * 'union[1] + 3' parses as a statement * expressions grammar is factored to avoid repetition * failed parses include expected tokens in the error message This is going on a seperate branch because it won't pass CI. That aside, ALL tests pass.
1 parent 57a86fe commit 4821ccf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Language/Rust/Parser/Internal.y

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,6 @@ postfix_blockexpr(lhs) :: { Expr Span }
963963
}
964964

965965

966-
967966
-- Then, we instantiate this general production into the following families of rules:
968967
--
969968
-- ['expr'] Most general class of expressions, no restrictions

0 commit comments

Comments
 (0)