Expand description
A compiler for the DSDL (Data structure description language) used in uavcan
For full description of DSDL, have a look at the specification
§Binary
The dsdl_compiler
consists of a binary and a library. For documentation on the binary look here
§Library
§Examples
§Compile DSDL directory
use dsdl_compiler::DSDL;
use dsdl_compiler::Compile;
let dsdl = DSDL::read("tests/dsdl/").unwrap();
let items = dsdl.compile();
assert!(items.len() >= 1);
§Print compiled dsdl
#[macro_use]
extern crate quote;
extern crate dsdl_compiler;
use dsdl_compiler::DSDL;
use dsdl_compiler::Compile;
let dsdl = DSDL::read("tests/dsdl/").unwrap();
let items = dsdl.compile();
let tokens = quote!{#(#items)*};
println!("{}", tokens);
Modules§
- bin
- Documentation for the
dsdlc
binary
Structs§
- DSDL
- The
DSDL
struct contains a number of data type definition
Traits§
- Compile
- The trait that must be implemented to compile from DSDL to code