Embedding a Flow in Rust
DFIR's surface syntax is typically used within a Rust program. (An interactive client and/or external language bindings are TBD.)
The surface syntax is embedded into Rust via a macro as follows
use dfir_rs::dfir_syntax;
fn main() {
let mut flow = dfir_syntax! {
// Hydroflow Surface Syntax goes here
};
}
The resulting flow
object is of type Dfir
.