dmngd / weedle4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weedle 4 - Furry Coala

A Web IDL parser

Crates.io version Documentation MIT License

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.

About

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

Usage

Cargo.toml

[dependencies]
weedle4 = "0.4.0"

src/main.rs

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

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

About

License:MIT License


Languages

Language:WebIDL 53.5%Language:Rust 46.5%