def ns.step

cswap-bend-cli@0.1.0.0 · fmt/ylex.bend:58

import cswap-bend-cli@0.1.0.0/fmt/ylex.bend as Ylex
import Base

58def ns.step(s: NS, +c: U32) -> NS:
59  match s:
60    case NStart{}:
61      ns.start(c)
62    case NMinus{}:
63      ns.lead(c)
64    case NZero{}:
65      ns.tail(c)
66    case NInt{}:
67      ns.int(c)
68    case NDot{}:
69      ns.digits(c, NFrac{})
70    case NFrac{}:
71      ns.frac(c)
72    case NExp{}:
73      ns.exp(c)
74    case NESign{}:
75      ns.digits(c, NEDig{})
76    case NEDig{}:
77      ns.digits(c, NEDig{})
78    case NBad{}:
79      NBad{}

Uses (9)

Used by (1)