[][src]Function yolk::transpiler::transpile

pub fn transpile(
    stmts: &[YolkNode]
) -> Result<(Vec<YololNode>, Context), TranspileError>

Transpiles Yolk statements to Yolol statements.

Returns Yolol statements with context.

Panics

Panics if any of the nodes are not statements, or if any of the nodes are malformed.