def uni.end.go

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

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

1029# a `\u` code point that is not a surrogate
1030def uni.end.go(
1031  _tl: String,
1032  cp: U32,
1033  buf: List<&2, Char>,
1034  stack: List<&2, Frame>,
1035  goal: Goal,
1036  done: Bool,
1037  sur: Lex.Sur
1038) -> St:
1039  match sur:
1040    case Lex.SOk{}:
1041      S{MCopy{Char.from_u32(cp) <> buf}, stack, goal, done, False{}}
1042    case Lex.SHi{}:
1043      S{MHi{cp, buf}, stack, goal, done, False{}}
1044    case Lex.SLo{}:
1045      err.st(goal)

Uses (12)

Used by (1)