/// Parse an entire design file. IEEE 1076-2008 section 13.1.
///
/// ```text
/// design_file := {design_unit}+
/// ```
Parse an entire design file.
Parse an entire design file .
pub fn parse_design_file<P: Parser>(p: &mut P) -> Vec<ast::DesignUnit> {
    let mut units = Vec::new();
    while !p.is_fatal() && p.peek(0).value != Eof {
        match parse_design_unit(p) {
            Ok(unit) => units.push(unit),
            Err(Recovered) => (),
        }
    }
    units
}
pub fn parse_design_file < P : Parser > ( p : & mut P ) -> Vec < ast :: DesignUnit > { let mut units = Vec :: new ( ) ; while ! p . is_fatal ( ) && p . peek ( 0 ) . value != Eof { match parse_design_unit ( p ) { Ok ( unit ) => units . push ( unit ) , Err ( Recovered ) => ( ) , } } units }
Parse an entire design file.
Parse an entire design file .
p
&mut P