Spanda source files use the .sd extension.
module my.robot;
import std.robotics;
JavaDoc-style /// comments attach to the next declaration:
/// Plans a safe path between two poses.
export fn plan_path(start: Pose, goal: Pose) -> Path {
return trajectory(from: start, to: goal, steps: 3);
}
Programs may declare functions, structs, enums, traits, robots, hardware profiles, safety policies, and operational metadata. See spanda-language.md for a tutorial walkthrough.