Skip to main content

with_preprocessor

Function with_preprocessor 

Source
pub fn with_preprocessor<R>(
    files: &mut dyn SourceFiles,
    sources: &[&str],
    source: &str,
    options: &CompileOptions,
    then: impl FnOnce(&mut Preprocessor<'_>) -> R,
) -> Result<R, Diagnostic>
Expand description

Do something with a source’s preprocessor, set up as a build of the program sources sets it up: its macros, include paths, character set, and imports, with the libraries built into the compiler, and an English source read as the Hexicon it means. It gives preprocessed text; set_compile_mode makes it give tokens.