Skip to main content

Module js

Module js 

Source
Expand description

The JS parser (JSParserImpl). Port of lib/Parser/JSParserImpl*. Recursive-descent LL(1) over JSLexer, building the ast ESTree.

Structs§

JSParserImpl
The JS parser.
Param
A bitmask of grammar parameters threaded between parse functions. Port of JSParserImpl::Param.

Enums§

ParserPass
The parser mode. Port of enum ParserPass (JSParser.h:26-36). Same order: PreParse, LazyParse, FullParse.

Constants§

PARAM_DEFAULT
[Default]
PARAM_IN
[In] — “in” is recognized as a binary operator in RelationalExpression.
PARAM_RETURN
[Return]
PARAM_TAGGED
[Tagged]