vyre-libs 0.7.2

vyre Category A library ecosystem - pure-IR compositions over foundation IR and primitive-owned kernels
Documentation
1
2
3
4
5
6
7
8
use vyre_foundation::ir::Expr;

pub(crate) fn node_count(num_tokens: &Expr) -> u32 {
    match num_tokens {
        Expr::LitU32(n) => *n,
        _ => 1,
    }
}