Lex.begin.mode: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/syntax/lex.bend as Lex Lines 191-213 of bolt@1.27.0.0/src/syntax/lex.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&start_line=191&end_line=213 import Base # the mode and the kind of the token a char starts def begin.mode(cls: Class) -> Mode: match cls: case CAlpha{}: InName{} case CDigit{}: InNum{} case CQuote{}: InStr{} case CTick{}: InChar{} case CHash{}: InComment{} case CSpace{}: InSpace{} case COp{}: InOp{} case CDot{}: InOp{} case CBack{}: InOp{} case other: Fresh{} Uses (2): https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=Class https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=Mode