Skip to main content

declarations

Function declarations 

Source
pub fn declarations(forms: &[Sexp]) -> Vec<Declaration>
Expand description

Collect definput("name", "b3:…") declarations from a program.

Scanned rather than evaluated in order, so a definput may appear anywhere in the file. Evaluating them in sequence would make a macro’s access depend on whether its declaration happened to be written above it — a positional rule nobody would remember and the compiler would not enforce.