https://github.com/wasm-bindgen/weedle
A WebIDL Parser
https://github.com/wasm-bindgen/weedle
nom parser webidl
Last synced: 1 day ago
JSON representation
A WebIDL Parser
- Host: GitHub
- URL: https://github.com/wasm-bindgen/weedle
- Owner: wasm-bindgen
- License: mit
- Created: 2018-04-22T02:36:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-09-06T06:51:49.000Z (5 months ago)
- Last Synced: 2026-01-25T20:40:43.944Z (2 days ago)
- Topics: nom, parser, webidl
- Language: WebIDL
- Size: 228 KB
- Stars: 53
- Watchers: 4
- Forks: 30
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Weedle
A Web IDL parser
API Docs
|
Chat
Built with 🦀🕸 by The Rust and WebAssembly Working Group
## About
Parses valid WebIDL definitions & produces a data structure starting from
[`Definitions`](https://docs.rs/weedle/latest/weedle/type.Definitions.html).
## Usage
### `Cargo.toml`
```toml
[dependencies]
weedle = "0.9.0"
```
### `src/main.rs`
```rust
fn main() {
let parsed = weedle::parse("
interface Window {
readonly attribute Storage sessionStorage;
};
").unwrap();
println!("{:?}", parsed);
}
```