Reset the Lexer and add new input.
(input []byte)
| 128 | |
| 129 | // Reset the Lexer and add new input. |
| 130 | func (ffl *FFLexer) Reset(input []byte) { |
| 131 | ffl.Token = FFTok_init |
| 132 | ffl.Error = FFErr_e_ok |
| 133 | ffl.BigError = nil |
| 134 | ffl.reader.Reset(input) |
| 135 | ffl.lastCurrentChar = 0 |
| 136 | ffl.Output.Reset() |
| 137 | } |
| 138 | |
| 139 | func (le *LexerError) Error() string { |
| 140 | return fmt.Sprintf(`ffjson error: (%T)%s offset=%d line=%d char=%d`, |