(input io.ReaderAt, off, n int64)
| 189 | } |
| 190 | |
| 191 | func LexSection(input io.ReaderAt, off, n int64) (*lexer, chan LexItem) { |
| 192 | l := &lexer{ |
| 193 | input: io.NewSectionReader(input, off, n), |
| 194 | items: make(chan LexItem, 2000000), |
| 195 | } |
| 196 | |
| 197 | return l, l.items |
| 198 | } |
| 199 | |
| 200 | func (l *lexer) emit(t lexItemType) LexItem { |
| 201 | b := make([]byte, l.pos-l.start) |