- leftAssoc1<TToken, TOptions, TLeft>(pLeft: Parser<TToken, TOptions, TLeft>, pOper: Parser<TToken, TOptions, ((x: TLeft) => TLeft)>): Parser<TToken, TOptions, TLeft>
-
Parameters
-
pLeft: Parser<TToken, TOptions, TLeft>
-
pOper: Parser<TToken, TOptions, ((x: TLeft) => TLeft)>
Returns Parser<TToken, TOptions, TLeft>
Make a parser that parses one value and any number of following values to combine with the first one in left-to-right (first-to-last) order.
Use leftAssoc2 if the grammar has an explicit operator between values.
Implementation is based on chain and reduceLeft.