def read.fast.lit

emerging-eztoml@0.9.0.0 · main.bend:4839

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

4839# a literal-string character: a quote still takes the full step
4840def read.fast.lit(
4841  quote: Bool,
4842  bad: String,
4843  rows: List<&2, Val>,
4844  heads: List<&2, String>,
4845  here: List<&2, String>,
4846  parts: List<&2, String>,
4847  buf: List<&2, Char>,
4848  back: Lex,
4849  stack: List<&2, Ctx>,
4850  uni: U32,
4851  left: U32,
4852  arrtab: Bool,
4853  +cc: Char
4854) -> St:
4855  match quote:
4856    case True{}:
4857      read.fast.old(bad, rows, heads, here, parts, buf, LStr{}, back, QLit{}, stack,
4858        uni, left, arrtab, cc)
4859    case False{}:
4860      read.fast.push(str.bad(Char.to_u32(cc), False{}), bad, rows, heads, here, parts,
4861        buf, LStr{}, back, QLit{}, stack, uni, left, arrtab, cc)

Uses (14)

Used by (1)