зеркало из https://github.com/mozilla/gecko-dev.git
…
|
||
---|---|---|
.. | ||
src | ||
tests | ||
.cargo-checksum.json | ||
Cargo.toml | ||
LICENSE.md | ||
README.md |
README.md
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);
}