scanExponentPart method

Token scanExponentPart(
  1. int x
)

Implementation

Token scanExponentPart(int x) {
  if (x == char.$e || x == char.$E) {
    x = next();
    if (x == char.PLUS || x == char.MINUS) {
      x = next();
    }
    while (isDigit(x)) {
      x = next();
    }
  }
  return emitValueToken(Token.NUMBER);
}