зеркало из https://github.com/mozilla/gecko-dev.git
260e07c0c7
Depends on D34130 Differential Revision: https://phabricator.services.mozilla.com/D34131 --HG-- rename : third_party/rust/ascii-canvas/LICENSE-APACHE => third_party/rust/itertools-0.7.6/LICENSE-APACHE rename : third_party/rust/petgraph/LICENSE-MIT => third_party/rust/itertools-0.7.6/LICENSE-MIT rename : third_party/rust/itertools/Makefile => third_party/rust/itertools-0.7.6/Makefile rename : third_party/rust/itertools/custom.css => third_party/rust/itertools-0.7.6/custom.css extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
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);
}