Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Wanja Zaeske committed Aug 20, 2024
1 parent 829cc44 commit 91fc3d0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/validation/code.rs
Original file line number Diff line number Diff line change
@@ -351,3 +351,24 @@ where
}
Ok(())
}

/// Type signature of a block
pub enum BlockType {
Empty,
Primitive(ValType),
TyIndex(usize),
}

///
pub enum ValidationStackEntry {
ValType(ValType),
Block(BlockType),
Loop(BlockType),
If(BlockType),
}

impl From<ValType> for ValidationStackEntry {
fn from(val_ty: ValType) -> Self {
Self::ValType(val_ty)
}
}

0 comments on commit 91fc3d0

Please sign in to comment.