type Scan
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
100# What the lexer read: the end of the text, one whitespace character, or a
101# token; with the text after it and its last character.
102type Scan is Data:
103 Eof{}
104 Blank{rest: String, last: Char, len: U32}
105 Tok{
106 text: String,
107 len: U32,
108 rest: String,
109 last: Char,
110 lex: Lex,
111 sym: Sym,
112 name: Bool,
113 tail: Maybe<&2, U32>
114 }