def is_lit
import bolt@1.27.0.0/src/rules/tokens.bend as Tokensimport 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{}