def word.burst.atom

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

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

787# place the word. A number keeps its own spelling; the delimiter stays unread
788def word.burst.atom(
789  rest: String,
790  ch: Char,
791  raw: String,
792  nn: U32,
793  stack: List<&2, Frame>,
794  goal: Goal,
795  atom: Atom
796) -> St:
797  match atom:
798    case ABad{}:
799      word.burst.junk(goal, word.drop(raw), SCon{ch, rest})
800    case ANull{}:
801      word.burst.goal(ENull{}, ch, rest, stack, goal)
802    case ATrue{}:
803      word.burst.goal(EBool{True{}}, ch, rest, stack, goal)
804    case AFalse{}:
805      word.burst.goal(EBool{False{}}, ch, rest, stack, goal)
806    case ANum{}:
807      word.burst.goal(ENum{raw, nn}, ch, rest, stack, goal)

Uses (13)

Used by (1)