Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rustwasm/weedle
A WebIDL Parser
https://github.com/rustwasm/weedle
nom parser webidl
Last synced: 4 days ago
JSON representation
A WebIDL Parser
- Host: GitHub
- URL: https://github.com/rustwasm/weedle
- Owner: rustwasm
- License: mit
- Created: 2018-04-22T02:36:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T17:43:46.000Z (4 months ago)
- Last Synced: 2024-07-08T22:27:38.518Z (4 months ago)
- Topics: nom, parser, webidl
- Language: WebIDL
- Size: 226 KB
- Stars: 42
- Watchers: 7
- Forks: 27
- 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);
}
```