pub fn compile_file(filename: &str) -> Result<Module, GearsError> {
    let mut f = File::open(filename)?;
    let mut contents = String::new();
    f.read_to_string(&mut contents)?;
    compile_str(&contents, filename)
}
/// Compile a gears file to a module
Compile a gears file to a module
Compile a gears file to a module
pub fn compile_file(filename: &str) -> Result<Module, GearsError> {
    let mut f = File::open(filename)?;
    let mut contents = String::new();
    f.read_to_string(&mut contents)?;
    compile_str(&contents, filename)
}
pub fn compile_file ( filename : & str ) -> Result < Module , GearsError > { let mut f = File :: open ( filename ) ? ; let mut contents = String :: new ( ) ; f . read_to_string ( & mut contents ) ? ; compile_str ( & contents , filename ) }
Compile a gears file to a module
Compile a gears file to a module
filename
&str