build weedle

A WebIDL Parser

12 releases (7 breaking)

0.8.0 Sep 16, 2018
0.6.1 Aug 6, 2018
0.5.0 Jul 26, 2018

#37 in Parser implementations

Download history 504/week @ 2018-12-20 411/week @ 2018-12-27 572/week @ 2019-01-03 1021/week @ 2019-01-10 584/week @ 2019-01-17 499/week @ 2019-01-24 589/week @ 2019-01-31 716/week @ 2019-02-07 700/week @ 2019-02-14 1117/week @ 2019-02-21 981/week @ 2019-02-28 795/week @ 2019-03-07 908/week @ 2019-03-14 1028/week @ 2019-03-21 1271/week @ 2019-03-28

1,645 downloads per month
Used in 58 crates (3 directly)

MIT license

87KB
2.5K SLoC

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);
}

lib.rs:

Weedle - A WebIDL Parser

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

Example

extern crate weedle;

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

Note: This parser follows the grammar given at WebIDL.

If any flaws found when parsing string with a valid grammar, create an issue.

Dependencies

~583KB
~14K SLoC