Tokens.keyword: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/tokens.bend as Tokens Lines 89-95 of bolt@1.27.0.0/src/rules/tokens.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/tokens.bend&start_line=89&end_line=95 import Base import bolt@1.27.0.0/src/syntax/lex.bend as Lex import bolt@1.27.0.0/src/syntax/tree.bend as Tree # is the first node the keyword? def keyword(nn: Tree.Node, +word: String) -> Bool: match nn: case Tree.NCons{Tree.Leaf{Lex.Tok{Lex.TKey{}, +t, l, c}}, rest}: String.eq(t, word) case other: False{} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=Tok https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=TokKind https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=Node