pub fn compile(
        &mut self, fh: &mut Box<dyn BufRead>, name: &str,
    ) -> Option<Chunk> {
        let mut scanner = Scanner::new(fh);
        let mut chunk = Chunk::new_standard(name.to_string());
        let res = self.compile_inner(&mut scanner, &mut chunk);
        if !res {
            return None;
        } else {
            return Some(chunk);
        }
    }
/// Takes a BufRead and a chunk name as its arguments.  Compiles
/// the program code found in the BufRead, and returns a chunk
/// containing the compiled code. 
Takes a BufRead and a chunk name as its arguments.  Compiles
the program code found in the BufRead, and returns a chunk
containing the compiled code.
Takes a BufRead and a chunk name as its arguments . Compiles the program code found in the BufRead and returns a chunk containing the compiled code .
pub fn compile(
        &mut self, fh: &mut Box<dyn BufRead>, name: &str,
    ) -> Option<Chunk> {
        let mut scanner = Scanner::new(fh);
        let mut chunk = Chunk::new_standard(name.to_string());
        let res = self.compile_inner(&mut scanner, &mut chunk);
        if !res {
            return None;
        } else {
            return Some(chunk);
        }
    }
pub fn compile ( & mut self , fh : & mut Box < dyn BufRead > , name : & str , ) -> Option < Chunk > { let mut scanner = Scanner :: new ( fh ) ; let mut chunk = Chunk :: new_standard ( name . to_string ( ) ) ; let res = self . compile_inner ( & mut scanner , & mut chunk ) ; if ! res { return None ; } else { return Some ( chunk ) ; } }
Takes a BufRead and a chunk name as its arguments.
Takes a BufRead and a chunk name as its arguments .
&mut self
fh
&mut Box<dyn BufRead>
name
&str