def uni.go

emerging-eztoml@0.9.0.0 · main.bend:2963

import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml
import Base

2963# one hex digit of a unicode escape
2964def uni.go(ok: Bool, st: St, +cc: Char, back: Lex, uni: U32, +left: U32) -> St:
2965  match ok:
2966    case False{}:
2967      st.err(st, "invalid escape")
2968    case True{}:
2969      uni.next(U32.is_eq(left, 1), st, U32.add(U32.mul(uni, 16), dig.val(cc)), back, left)

Uses (11)

Used by (1)