Parser

Expressionss

Operator priority

Operator/ExpressionAssociativityParser fn nameImpl
Calls, Identifiers, LiteralsLeft to Rightcall
MembersLeft to Rightdot
block exprRight to Leftblock_expr
newRight to Leftnew_expr
deleteRight to Leftdelete_expr
awaitRight to Leftawait_expr
! ++ -- () ~ (unary - +) [] {}Left to Rightfactor
^Left to Leftpower
* / %Left to Rightterm
+ -Left to Rightadd_sub
>> <<Left to Rightshift
&Left to Rightbit_and
bxorLeft to Rightbit_xor
|Left to Rightbit_or
== != < <= > >=Left to Rightcmp
&&Left to Rightlogical_and
||Left to Rightlogical_or
..Left to Rightrange
?:Right to Leftternary
= := += -= *= /= ^= %=Right to Leftassign
,Nonecomma

Statements

StatementParser fn nameTrigger tokenImpl
Variable declarationvar_declLet
Async function declarationfn_declAsync
Function declarationfn_declFunction
Scope declarationscope_declScope
Return statementreturn_stmtReturn
Yield statementyield_stmtYield
Break statementbreak_stmtBreak
Continue statementcontinue_stmtContinue
If statementif_stmtIf
While statementwhile_stmtWhile
For statementfor_stmtFor
Loop statementloop_stmtLoop
Try statementtry_stmtTry
Throw statementthrow_stmtThrow
Expression statementexpr_stmtOther