def sk.esc.go

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

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

1276# a short escape, or the start of `\u`, inside a skipped string
1277def sk.esc.go(
1278  +ch: Char,
1279  tl: String,
1280  stack: List<&2, Frame>,
1281  goal: Goal,
1282  done: Bool,
1283  is_u: Bool
1284) -> St:
1285  match is_u:
1286    case True{}:
1287      S{MSkUni{3n, 0}, stack, goal, done, False{}}
1288    case False{}:
1289      sk.esc.put(tl, stack, goal, done, Lex.unescape(ch))

Uses (10)

Used by (1)