//! Common interface for parsers that can create abstract syntax trees.
usecrate::ast::AST;pubmodascii;pubmodtoken;pubuseascii::AsciiParser;/// Code that can parse ASTs from a given input type.
pubtraitASTParser<I> {/// The error that parsing can raise.
typeParseError;/// Attempts to parse the given input, returning an AST on success.
fnparse(&self, input:&I)->Result<AST, Self::ParseError>;}