def is_lit

bolt@1.27.0.0 · src/rules/tokens.bend:45

import bolt@1.27.0.0/src/rules/tokens.bend as Tokens
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

45# a number, a char or a string literal?
46def is_lit(kk: Lex.TokKind) -> Bool:
47  match kk:
48    case Lex.TNum{}:
49      True{}
50    case Lex.TChar{}:
51      True{}
52    case Lex.TStr{}:
53      True{}
54    case other:
55      False{}

Uses (2)

Used by (1)