Added subscript lexer
Some checks failed
Rust / build (push) Has been cancelled

This commit is contained in:
2026-01-25 18:52:57 +01:00
parent c461f82de1
commit 66e5a71032
5 changed files with 37 additions and 5 deletions

View File

@@ -81,6 +81,9 @@ impl LexedData for GenTokTree {
impl LexedData for Vec<GenTokTree> {
fn into_vec(self) -> Vec<GenTokTree> { self }
}
impl<const N: usize> LexedData for [GenTokTree; N] {
fn into_vec(self) -> Vec<GenTokTree> { self.to_vec() }
}
pub trait Lexer: Debug + Send + Sync + Sized + Default + 'static {
const CHAR_FILTER: &'static [RangeInclusive<char>];