Skip to main content

validate_syntax

Function validate_syntax 

Source
pub fn validate_syntax(src: &str) -> Result<(), Error>
Expand description

Cheap syntax check: Ok(()) iff SRC parses as Scheme.

This only verifies the surface syntax (balanced delimiters, valid tokens); it does not evaluate the form or resolve any Guix bindings. For a deeper check that actually loads the config, enable the guile-check feature.