type Mode
import emerging-ezjson@1.3.0.0/src/lex.bend as Leximport Base
29# what the machine is inside of: nothing, a bare word, a string, an escape,
30# a \u escape, a high surrogate waiting for its pair, or a rejected text
31type Mode is Data:
32 Idle{}
33 Word{}
34 Str{}
35 Esc{}
36 Uni{left: Nat, acc: U32}
37 Hi{hi: U32}
38 HiEsc{hi: U32}
39 Lo{left: Nat, acc: U32, hi: U32}
40 Bad{}