arithmeticOperator function

Parser arithmeticOperator()

Arithmetic operator parser. Note: .trim() removed from individual operators since primaryTerm().trim() handles surrounding whitespace in arithmeticExpr().

Implementation

Parser arithmeticOperator() => (char('+') | char('-') | char('*') | char('/'))
    .labeled('arithmeticOperator');