Package com.oracle.js.parser
package com.oracle.js.parser
An ECMAScript 6 (ECMAScript 2015) compliant parser for JavaScript source code. Based on the
parser of Project Nashorn in OpenJDK.
-
ClassDescriptionBase class for parsers.Helper class to throw various standard "ECMA error" exceptions such as Error, ReferenceError, TypeError etc.Handles JavaScript error reporting.
ErrorManagerthat reports to aStringBuilder.ThrowErrorManager that throws ParserException upon error conditions.Utility methods for parsing of identifiers.Native ECMAScript Error types.Representation for ECMAScript types - this maps directly to the ECMA script standardResponsible for converting source content into a stream of tokens.Helper class for Lexer tokens, e.g XML or RegExp tokens.interface to receive line information for multi-line literals.Temporary container for regular expressions.Builds the IR.ECMAScript parser exceptions.Utility for scanning thru a char array.Parser environment consists of command line options, and output and error writers, etc.Behavior when encountering a function declaration in a lexical context where only statements are acceptable (function declarations are source elements, but not statements).Source objects track the origin of JavaScript entities.A token is a 64 bit long value that represents a basic parse/lex unit.Classification of token types.Fast lookup of operators and keywords.Handles streaming of tokens between lexer and parser.Description of all the JavaScript tokens.