math method

MathExpr math()

Implementation

MathExpr math() {
  final lhs = logicalOrExpr();
  final op = peek();

  return switch (op.type) {
    TokenType.kAssign => AssignExpr(
      op,
      lhs: lhs,
      rhs: advanceAndThen(logicalOrExpr),
    ),
    _ => lhs,
  };
}