Function boa::parse[][src]

pub fn parse<T: AsRef<[u8]>>(
    src: T,
    strict_mode: bool
) -> StdResult<StatementList, ParseError>
Expand description

Parses the given source code.

It will return either the statement list AST node for the code, or a parsing error if something goes wrong.