(in string)
| 69 | } |
| 70 | |
| 71 | func newStringLexer(in string) *stringLexer { |
| 72 | return &stringLexer{ |
| 73 | str: in, |
| 74 | start: 0, |
| 75 | pos: 0, |
| 76 | items: make([]item, 0), |
| 77 | done: false, |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // Next returns the next rune in the input string, moving the |
| 82 | // position pointer on by the size of the rune that was decoded. |