vyre-libs 0.6.1

vyre Category A library ecosystem - pure-IR compositions over vyre-ops hardware primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

pub(crate) fn token_start(classified: &ClassifiedTokens, idx: usize) -> Result<u32, String> {
    classified.tok_starts.get(idx).copied().ok_or_else(|| {
        "vyre-libs::gpu_pipeline: token provenance start column missing. Fix: repair GPU lexer output column lengths.".to_string()
    })
}

pub(crate) fn token_len(classified: &ClassifiedTokens, idx: usize) -> Result<u32, String> {
    classified.tok_lens.get(idx).copied().ok_or_else(|| {
        "vyre-libs::gpu_pipeline: token provenance length column missing. Fix: repair GPU lexer output column lengths.".to_string()
    })
}