neutralts/bif/
parse_bif_unknown.rs

1use crate::{bif::constants::*, bif::Bif, bif::BifError};
2
3impl<'a> Bif<'a> {
4    /*
5        unknown bif
6    */
7    pub(crate) fn parse_bif_unknown(&mut self) -> Result<(), BifError> {
8        self.alias = "unknown".to_string();
9
10        Err(self.bif_error(BIF_ERROR_UNKNOWN_BIF))
11    }
12}
13
14#[cfg(test)]
15#[path = "parse_bif_unknown_tests.rs"]
16mod tests;