/// Use a file stored at a `path` as source for the lexing process.
Use a file stored at a `path` as source for the lexing process.
Use a file stored at a ` path ` as source for the lexing process .
pub(crate) fn from_file<P: AsRef<path::Path>>(path: P) -> Result<Lexer, io::Error> {
        let mut fd = fs::File::open(path)?;
        let mut buf = String::new();
        fd.read_to_string(&mut buf)?;
        Ok(Lexer { src: buf })
    }
pub ( crate ) fn from_file < P : AsRef < path :: Path > > ( path : P ) -> Result < Lexer , io :: Error > { let mut fd = fs :: File :: open ( path ) ? ; let mut buf = String :: new ( ) ; fd . read_to_string ( & mut buf ) ? ; Ok ( Lexer { src : buf } ) }
Use a file stored at a `path` as source for the lexing process.
Use a file stored at a ` path ` as source for the lexing process .
path
P