Parser.parseBinaryOp

Consumes the tokens of a binary operator.

class Parser
parseBinaryOp

Parameters

fn

Receives a function that creates the binary Expression.

prevPrec
Type: PREC

The precedence value of the previous operator.

Return Value

Type: PREC

The precedence value of the binary operator. The higher the value the stronger the operator binds.

Meta