type Scan
import bend-kit-bignum@0.1.0.0/decimal.bend as Decimalimport Base
277# Where the reader is. ds holds the coefficient's digits, last first, without
278# leading zeros; sc counts fraction digits; e is the exponent's magnitude.
279type Scan is Data:
280 Bad{}
281 Begin{}
282 Signed{neg: Bool}
283 Whole{neg: Bool, ds: String}
284 Dot{neg: Bool, ds: String}
285 Frac{neg: Bool, ds: String, sc: Nat}
286 Exp{neg: Bool, ds: String, sc: Nat}
287 ExpSigned{neg: Bool, ds: String, sc: Nat, eneg: Bool}
288 ExpDigits{neg: Bool, ds: String, sc: Nat, eneg: Bool, e: U32}