This crate provides a way to simply set up a tokenizer and use it.
Not recommended for simple tokenizers as this crate adds a bunch of stuff
to support many if not all kinds of tokenizers.
/// # Record
/// Records the tokenizers data like current row, column, etc.
/// It is used in tokens, rules, etc.
#[derive(Debug, Clone, Copy)]pubstructRecord{pub(crate)pos:(usize, usize),
}implRecord{/// Get the recorded row.
#[must_use]#[inline(always)]pubfnrow(&self)->usize{self.pos.0}/// Get the recorded column.
#[must_use]#[inline(always)]pubfncol(&self)->usize{self.pos.1}}