forked from Orchid/orchid
Added subscript lexer
This commit is contained in:
@@ -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>];
|
||||
|
||||
Reference in New Issue
Block a user