(b byte)
| 167 | } |
| 168 | |
| 169 | func (l *lexer) until(b byte) bool { |
| 170 | for { |
| 171 | n := l.next() |
| 172 | if n == eof { |
| 173 | return false |
| 174 | } |
| 175 | |
| 176 | if n == b { |
| 177 | return true |
| 178 | } |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | func Lex(input io.ReaderAt) (*lexer, chan LexItem) { |
| 183 | l := &lexer{ |
no test coverage detected