def lo.hit

emerging-ezjson@1.3.0.0 · src/pull.bend:1243

import emerging-ezjson@1.3.0.0/src/pull.bend as Pull
import Base
import emerging-ezjson@1.3.0.0/src/lex.bend as Lex

1243# one hex digit of the low surrogate
1244def lo.hit(
1245  +ch: Char,
1246  +tl: String,
1247  left: Nat,
1248  acc: U32,
1249  hi: U32,
1250  buf: List<&2, Char>,
1251  stack: List<&2, Frame>,
1252  goal: Goal,
1253  done: Bool,
1254  bad: Bool
1255) -> St:
1256  match bad:
1257    case True{}:
1258      err.st(goal)
1259    case False{}:
1260      lo.hit.go(ch, tl, left, acc, hi, buf, stack, goal, done, Lex.hex.ok(Char.to_u32(ch)))

Uses (13)

Used by (1)