First draft for assertions

This commit is contained in:
elvis
2025-07-29 19:35:25 +02:00
parent 533af16b0f
commit 1a2ffe1b32
5 changed files with 202 additions and 84 deletions

View File

@ -593,30 +593,17 @@ impl Hash for RSlabel {
}
}
// -----------------------------------------------------------------------------
// RSassertOp
// -----------------------------------------------------------------------------
#[derive(Clone, Debug)]
pub enum RSassertOp {
InW,
InR,
InI,
InP,
}
// -----------------------------------------------------------------------------
// RSassert
// -----------------------------------------------------------------------------
#[derive(Clone, Debug)]
pub enum RSassert {
Not(Box<RSassert>),
Xor(Box<RSassert>, Box<RSassert>),
Or(Vec<RSassert>),
And(Vec<RSassert>),
Sub(RSset, RSassertOp),
NonEmpty(RSassertOp),
pub use crate::rsprocess::assert::RSassert;
pub mod assert {
pub use crate::rsprocess::assert::*;
}
// -----------------------------------------------------------------------------
// RSBHML
// -----------------------------------------------------------------------------