Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.16 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.16 KB

Weedle 2 - Electric Boogaloo

A Web IDL parser

Crates.io version Documentation MIT License

Built with 🦀🕸 by The Rust and WebAssembly Working Group.
Forked to extend the functionality beyond WebIDL needs.

About

Parses valid WebIDL definitions & produces a data structure starting from Definitions.

Usage

Cargo.toml

[dependencies]
weedle2 = "5.0.0"

src/main.rs

fn main() {
    let parsed = weedle::parse("
        interface Window {
            readonly attribute Storage sessionStorage;
        };
    ").unwrap();

    println!("{:?}", parsed);
}