def plan.obj_after

cswap-bend-cli@0.1.0.0 · json.bend:167

import cswap-bend-cli@0.1.0.0/json.bend as Json
import Base
import cswap-bend-cli@0.1.0.0/json/lex.bend as Lex

167def plan.obj_after(+toks: List<&2, Lex.Tok>) -> Plan:
168  match toks:
169    case Nil{}:
170      PRes{Done{JNil{}}}
171    case Con{Lex.TComma{}, t}:
172      PNext{MONext{}, t}
173    case _:
174      PRes{Fail{"expected , or } in object"}}

Uses (6)

Used by (1)