[−][src]Crate weedle
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
| argument | |
| attribute | |
| common | |
| dictionary | |
| interface | |
| literal | |
| mixin | |
| namespace | |
| term | |
| types |
Macros
| term |
Structs
| CallbackDefinition | Parses |
| CallbackInterfaceDefinition | Parses |
| DictionaryDefinition | Parses |
| EnumDefinition | Parses |
| ImplementsDefinition | Parses |
| IncludesStatementDefinition | Parses |
| InterfaceDefinition | Parses |
| InterfaceMixinDefinition | Parses |
| NamespaceDefinition | Parses |
| PartialDictionaryDefinition | Parses |
| PartialInterfaceDefinition | Parses |
| PartialInterfaceMixinDefinition | Parses |
| PartialNamespaceDefinition | Parses |
| TypedefDefinition | Parses |
Enums
| Definition | Parses a definition |
| Err | The |
| ErrorKind | indicates which parser returned an error |
Traits
| Parse |
Functions
| parse | A convenient parse function |
Type Definitions
| Definitions | Parses WebIDL definitions. It is the root struct for a complete WebIDL definition. |
| EnumValueList | Parses a non-empty enum value list |
| IResult | Holds the result of parsing functions |