pub(crate) fn new<S>(input: &'input S) -> Self
    where
        S: ?Sized + ParserSource,
    {
        let chars = CharLocations::new(input);
        Lexer {
            input: input.src(),
            chars,
            start_index: input.start_index(),
            file_offset: Location::default(),
            cu: 0,
            stored_tokens: VecDeque::new(),
        }
    }
/// Create a new lexer from the source string
Create a new lexer from the source string
Create a new lexer from the source string
pub(crate) fn new<S>(input: &'input S) -> Self
    where
        S: ?Sized + ParserSource,
    {
        let chars = CharLocations::new(input);
        Lexer {
            input: input.src(),
            chars,
            start_index: input.start_index(),
            file_offset: Location::default(),
            cu: 0,
            stored_tokens: VecDeque::new(),
        }
    }
pub ( crate ) fn new < S > ( input : & ' input S ) -> Self where S : ? Sized + ParserSource , { let chars = CharLocations :: new ( input ) ; Lexer { input : input . src ( ) , chars , start_index : input . start_index ( ) , file_offset : Location :: default ( ) , cu : 0 , stored_tokens : VecDeque :: new ( ) , } }
Create a new lexer from the source string
Create a new lexer from the source string
input
&'input S
input
&'input S