Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

Weedle

A Web IDL parser


Build Status
Crates.io version
Download
docs.rs docs


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);
}
```