def bad_first

cswap-bend-cli@0.1.0.0 · fmt/ylex.bend:132

import cswap-bend-cli@0.1.0.0/fmt/ylex.bend as Ylex
import Base

132# Characters a plain scalar must not start with: indicators, quotes, and
133# anything a reader could take for a number, a date, a tag or a merge key.
134def bad_first(+c: U32) -> Bool:
135  U32.is_eq(c, 45) || U32.is_eq(c, 63) || U32.is_eq(c, 58) || U32.is_eq(c, 44) || U32.is_eq(c, 91) || U32.is_eq(c, 93) || U32.is_eq(c, 123) || U32.is_eq(c, 125)
136    || U32.is_eq(c, 35) || U32.is_eq(c, 38) || U32.is_eq(c, 42) || U32.is_eq(c, 33) || U32.is_eq(c, 124) || U32.is_eq(c, 62) || U32.is_eq(c, 39) || U32.is_eq(c, 34)
137    || U32.is_eq(c, 37) || U32.is_eq(c, 64) || U32.is_eq(c, 96) || U32.is_eq(c, 43) || U32.is_eq(c, 46) || U32.is_eq(c, 126) || U32.is_eq(c, 61) || U32.is_eq(c, 60)
138    || is_digit(c) || is_space(c)

Uses (6)

Used by (1)