userDefinableOperator method

Parser userDefinableOperator()

Implementation

Parser userDefinableOperator() =>
    ref0(multiplicativeOperator) |
    ref0(additiveOperator) |
    ref0(shiftOperator) |
    ref0(relationalOperator) |
    ref0(bitwiseOperator) |
    ref1(token, '==') // Disallow negative and === equality checks.
    |
    ref1(token, '~') // Disallow ! operator.
    |
    ref0(negateToken) |
    ref1(token, '[') & ref1(token, ']') |
    ref1(token, '[') & ref1(token, ']') & ref1(token, '=');