def is_name

bolt@1.27.0.0 · src/syntax/word.bend:14

import bolt@1.27.0.0/src/syntax/word.bend as Word
import Base

14# a char a name may hold: letters, digits, `_` and `.`
15def is_name(+cc: Char) -> Bool:
16  Bool.or(Bool.or(Char.is_alpha(cc), Char.is_digit(cc)), Bool.or(Char.is_eq(cc, '_'), Char.is_eq(cc, '.')))

Uses (6)

Used by (2)