pub fn compile_code_with_state( source_code_raw: &str, source_code_parent_dir: &Path, var_state: Option<HashMap<Var, Rhs>>, out: impl Write, rich_out: bool, ) -> Result<Evaluated>