pest_typed/
pratt.rs

1// pest-typed. A statically typed version of pest.
2// Copyright (c) 2023 黄博奕
3//
4// Licensed under the Apache License, Version 2.0
5// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
6// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7// option. All files in the project carrying such notice may not be copied,
8// modified, or distributed except according to those terms.
9
10//! For Pratt Parser. See [`pest::pratt_parser`].
11
12use crate::{RuleType, TypedNode};
13
14/// Pratt parser for those nodes with prefix, infix and postfix.
15#[allow(dead_code)]
16#[expect(unreachable_pub)]
17pub trait PrattPrefixInfixPostfix<
18    'i,
19    R: RuleType,
20    Prefix: TypedNode<'i, R>,
21    InFix: TypedNode<'i, R>,
22    Postfix: TypedNode<'i, R>,
23>
24{
25}