use super::Lexer;
impl Lexer {
pub fn with_position(source: &str, line: usize, column: usize) -> Self {
Self::with_position_and_offset(source, line, column, 0)
}
pub fn with_position_and_offset(
source: &str,
line: usize,
column: usize,
byte_offset: usize,
) -> Self {
Self {
source: source.chars().collect(),
pos: 0,
byte_pos: byte_offset,
line,
column,
}
}
}