def Num.go
import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yamlimport Base
354def Num.go(s: String, st: Num) -> Num:
355 match s:
356 case SNil{}:
357 st
358 case SCon{+c, t}:
359 Num.go(t, Num.step(st, c, Char.is_digit(c), Char.is_eq(c, '.'),
360 Bool.or(Char.is_eq(c, 'e'), Char.is_eq(c, 'E')),
361 Bool.or(Char.is_eq(c, '-'), Char.is_eq(c, '+'))))