fn parse_tokens(tokens: Vec<Token>) -> Result<StatementList, String> {
    use boa::syntax::parser::Parser;

    Parser::new(&tokens)
        .parse_all()
        .map_err(|e| format!("ParsingError: {}", e))
}
/// Parses the the token stream into a ast and returns it.
///
/// Returns a error of type String with a message,
/// if the token stream has a parsing error.
Parses the the token stream into a ast and returns it.
Returns a error of type String with a message,
if the token stream has a parsing error.
Parses the the token stream into a ast and returns it . Returns a error of type String with a message if the token stream has a parsing error .
fn parse_tokens(tokens: Vec<Token>) -> Result<StatementList, String> {
    use boa::syntax::parser::Parser;
    Parser::new(&tokens)
        .parse_all()
        .map_err(|e| format!("ParsingError: {}", e))
}
fn parse_tokens ( tokens : Vec < Token > ) -> Result < StatementList , String > { use boa :: syntax :: parser :: Parser ; Parser :: new ( & tokens ) . parse_all ( ) . map_err ( | e | format ! ( " " e ) ) }
Parses the the token stream into a ast and returns it.
Parses the the token stream into a ast and returns it .
tokens
Vec<Token>