def AaLex.space.go
bend-osdev-apparmor@0.1.0.0 · token.bend:161
import bend-osdev-apparmor@0.1.0.0/token.bend as Token
import Base
161
162def AaLex.space.go(k: AaLxCh, +st: AaLex, h: U32) -> AaLex:
163 match k:
164 case AaLxCOther{}:
165 AaLex.mode(st, AaLxWord{[h], 0n})
166 case AaLxCWs{}:
167 st
168 case AaLxCNl{}:
169 AaLex.newline(st)
170 case AaLxCHash{}:
171 AaLex.mode(st, AaLxHash{0n})
172 case AaLxCOpen{}:
173 AaLex.open(st)
174 case AaLxCClose{}:
175 AaLex.push(st, AaTClose{AaLex.line(st)})
176 case AaLxCLP{}:
177 AaLex.open_paren(st)
178 case AaLxCRP{}:
179 AaLex.close_paren(st)
180 case AaLxCComma{}:
181 AaLex.push(st, AaTComma{AaLex.line(st)})
182 case AaLxCQuote{}:
183 AaLex.mode(st, AaLxQuote{Nil{}, False{}})