Skip to content

Commit 33c5204

Browse files
bors[bot]matklad
andauthored
Merge #10344
10344: minor: link my own pratt parsing article :-) r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents d653995 + f692be8 commit 33c5204

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/parser/src/grammar/expressions.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ pub(super) fn stmt(p: &mut Parser, with_semi: StmtWithSemi, prefer_expr: bool) {
161161
}
162162

163163
pub(super) fn expr_block_contents(p: &mut Parser) {
164-
// This is checked by a validator
165164
attributes::inner_attrs(p);
166165

167166
while !p.at(EOF) && !p.at(T!['}']) {
@@ -197,7 +196,7 @@ struct Restrictions {
197196

198197
/// Binding powers of operators for a Pratt parser.
199198
///
200-
/// See <https://www.oilshell.org/blog/2016/11/03.html>
199+
/// See <https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html>
201200
#[rustfmt::skip]
202201
fn current_op(p: &Parser) -> (u8, SyntaxKind) {
203202
const NOT_AN_OP: (u8, SyntaxKind) = (0, T![@]);

0 commit comments

Comments
 (0)