The JavaScript parser: parser.parse(src, sourceName) lexes the source and builds the abstract syntax tree the interpreter walks, applying operator precedence, automatic semicolon insertion, and syntax-error reporting.
parser.parse(src, sourceName)