def num
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
271def num(s: String) -> Num:
272 match s:
273 case SNil{}:
274 Num{0, 0, SNil{}}
275 case SCon{Chr{+c}, t}:
276 num.go(t, c, 0, 0, is_digit(c))
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
271def num(s: String) -> Num:
272 match s:
273 case SNil{}:
274 Num{0, 0, SNil{}}
275 case SCon{Chr{+c}, t}:
276 num.go(t, c, 0, 0, is_digit(c))