def tag.emit

yaml-for-bend@0.1.1.0 · scan.bend:1178

import yaml-for-bend@0.1.1.0/scan.bend as Scan
import Base
import yaml-for-bend@0.1.1.0/token.bend as T

1178def tag.emit(+st: Sc, handle: String, suffix: String, +n: Nat, +at: T.Mark) -> Step:
1179  +st2 = skip(st, n)
1180  +next = peek(sc.s(st2), 0n)
1181  when(Step, tag.ends(next, sc.in_flow(st2)),
1182    u => Go{emit(st2, T.TagTok{handle, suffix}, at)},
1183    u => fail(st2, Bool.pick(String, Char.is_eq(next, '%'), "did not find URI escaped octet while parsing a tag",
1184      "did not find expected whitespace or line break while scanning a tag"), at))

Uses (17)

Used by (2)