Crate weedle

source ·
Expand description

Weedle - A WebIDL Parser

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

§Example

extern crate weedle;

let parsed = weedle::parse("
    interface Window {
        readonly attribute Storage sessionStorage;
    };
").unwrap();
println!("{:?}", parsed);

Note: This parser follows the grammar given at WebIDL.

If any flaws found when parsing string with a valid grammar, create an issue.

Modules§

Macros§

Structs§

Enums§

  • Parses a definition
  • The Err enum indicates the parser was not successful
  • indicates which parser returned an error

Traits§

Functions§

  • A convenient parse function

Type Aliases§

  • Parses WebIDL definitions. It is the root struct for a complete WebIDL definition.
  • Parses a non-empty enum value list
  • Holds the result of parsing functions