unaryOperand function

Parser unaryOperand()

Operand for unary operations - can be a full expression (minus unary itself to avoid left-recursion).

Implementation

Parser unaryOperand() {
  return (ref0(groupedExpression) |
          ref0(range) |
          ref0(memberAccess) |
          ref0(arrayAccess) |
          ref0(literal) |
          ref0(identifier))
      .labeled('unaryOperand');
}