weedle 0.8.0

A WebIDL Parser

Weedle - A WebIDL Parser

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

Basic Usage

In Cargo.toml

[dependencies]
weedle = "0.5.0"

Then, in src/main.rs

extern crate weedle;

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