Crate weedle [−] [src]
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
err_if_not | |
opt_flat | |
term | |
test_variants | |
weedle | |
ws |
ws! also ignores line & block comments |
Structs
CallbackDefinition |
Parses |
CallbackInterfaceDefinition |
Parses |
CompleteStr |
Holds a complete String, for which the |
Definitions |
Parses WebIDL definitions. It is the root struct for a complete WebIDL definition. |
DictionaryDefinition |
Parses |
EnumDefinition |
Parses |
IncludesStatementDefinition |
Parses |
InterfaceDefinition |
Parses |
InterfaceMixinDefinition |
Parses |
NamespaceDefinition |
Parses |
PartialDictionaryDefinition |
Parses |
PartialInterfaceDefinition |
Parses |
PartialInterfaceMixinDefinition |
Parses |
PartialNamespaceDefinition |
Parses |
TypedefDefinition |
Parses |
Enums
Definition |
Parses a definition |
Traits
Parse |
Functions
parse |
A convenient parse function |
Type Definitions
EnumValueList |
Parses a non-empty enum value list |
IResult |
Holds the result of parsing functions |