11 releases (6 breaking)

0.7.0 Aug 27, 2018
0.6.1 Aug 6, 2018
0.5.0 Jul 26, 2018
0.4.0 May 6, 2018
0.1.1 Apr 29, 2018

#25 in Parser implementations

Download history 293/week @ 2018-08-22 238/week @ 2018-08-29 208/week @ 2018-09-05 294/week @ 2018-09-12 345/week @ 2018-09-19 407/week @ 2018-09-26 397/week @ 2018-10-03 348/week @ 2018-10-10 392/week @ 2018-10-17 295/week @ 2018-10-24 387/week @ 2018-10-31 277/week @ 2018-11-07 319/week @ 2018-11-14

418 downloads per month
Used in 12 crates (2 directly)

MIT license

86KB
2.5K SLoC


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

~606KB
~14K SLoC