def lay.plan

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

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

594# the delimiter of a skipped word, once the value is inside the container.
595# The delimiter is consumed. The caller resumes on the suffix after it
596def lay.plan(stack: List<&2, Frame>, goal: Goal, cls: Lex.Class) -> St:
597  match cls:
598    case Lex.CSpace{}:
599      S{MIdle{}, stack, goal, False{}, False{}}
600    case Lex.CPunct{tok}:
601      punct.on(tok, stack, goal, False{})
602    case other:
603      err.st(goal)

Uses (9)

Used by (1)