Deprecate backpassing to prepare for eventual removal

This commit is contained in:
Sam Mohr 2024-08-16 22:36:04 -07:00
parent a14a110293
commit 50f6e11423
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
34 changed files with 778 additions and 490 deletions

View file

@ -118,6 +118,23 @@ impl std::fmt::Display for UnaryOp {
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Suffix {
/// (!), e.g. (Stdin.line!)
Bang,
/// (?), e.g. (parseData? data)
Question,
}
impl std::fmt::Display for Suffix {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Suffix::Bang => write!(f, "!"),
Suffix::Question => write!(f, "?"),
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BinOp {
// highest precedence