pub fn create_lexer(txt: &str) -> (SourceFile, SourceReader, CodeLexer) {
    let source = SourceFile::mock(txt);
    let reader = SourceReader::new(&source);
    let lexer = CodeLexer::new(source.len());
    (source, reader, lexer)
}
/// Create a set of source, reader and lexer for testing purposes.
Create a set of source, reader and lexer for testing purposes.
Create a set of source reader and lexer for testing purposes .
pub fn create_lexer(txt: &str) -> (SourceFile, SourceReader, CodeLexer) {
    let source = SourceFile::mock(txt);
    let reader = SourceReader::new(&source);
    let lexer = CodeLexer::new(source.len());
    (source, reader, lexer)
}
pub fn create_lexer ( txt : & str ) -> ( SourceFile , SourceReader , CodeLexer ) { let source = SourceFile :: mock ( txt ) ; let reader = SourceReader :: new ( & source ) ; let lexer = CodeLexer :: new ( source . len ( ) ) ; ( source , reader , lexer ) }
Create a set of source, reader and lexer for testing purposes.
Create a set of source reader and lexer for testing purposes .
txt
&str
txt
&str