A Web IDL parser
Built with 🦀🕸 by The Rust and WebAssembly Working Group.Forked with weedle2 patches and automated webref test to make sure that it can always read all latest web(idl) files.
Parses valid WebIDL definitions & produces a data structure starting from
Definitions
.
[dependencies]
weedle4 = "0.4.0"
fn main() {
let parsed = weedle::parse("
interface Window {
readonly attribute Storage sessionStorage;
};
").unwrap();
println!("{:?}", parsed);
}