Skip to content

d0c-s4vage/weedle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weedle

A Web IDL parser

Build Status Crates.io version Download docs.rs docs

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

Parses valid WebIDL definitions & produces a data structure starting from Definitions.

Usage

Cargo.toml

[dependencies]
weedle = "0.9.0"

src/main.rs

fn main() {
    let parsed = weedle::parse("
        interface Window {
            readonly attribute Storage sessionStorage;
        };
    ").unwrap();

    println!("{:?}", parsed);
}

About

A WebIDL Parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • WebIDL 54.4%
  • Rust 45.6%