vyre-libs 0.6.1

vyre Category A library ecosystem - pure-IR compositions over vyre-ops hardware primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

impl PreprocessorExprParser<'_, '_, '_> {
    pub(crate) fn parse(&mut self) -> Result<bool, CPreprocessorError> {
        let value = self.parse_conditional()?;
        self.skip_ws_and_splices();
        if self.index != self.bytes.len() {
            return Err(self.error("Fix: unsupported tokens remain in #if expression"));
        }
        Ok(value != 0)
    }
}