/// Contains all structures related to the AST for the WebIDL grammar.
/// Contains the visitor trait needed to traverse the AST and helper walk functions.
pub use ParseError;
use ;
/// The result that is returned when an input string is parsed. If the parse succeeds, the `Ok`
/// result will be a vector of definitions representing the AST. If the parse fails, the `Err` will
/// be either an error from the lexer or the parser.
pub type ParseResult = ;
/// Parses a given input string and returns an AST.
///
/// # Example
///
/// ```
/// use webidl::*;
/// use webidl::ast::*;
///
/// let result = parse_string("[Attribute] interface Node { };");
///
/// assert_eq!(result,
/// Ok(vec![Definition::Interface(Interface::NonPartial(NonPartialInterface {
/// extended_attributes: vec![
/// ExtendedAttribute::NoArguments(
/// Other::Identifier("Attribute".to_string()))],
/// inherits: None,
/// members: vec![],
/// name: "Node".to_string()
/// }))]));
/// ```