Push a token back to the stream.
(self, token)
| 319 | eos = property(lambda x: not x, doc="Are we at the end of the stream?") |
| 320 | |
| 321 | def push(self, token): |
| 322 | """Push a token back to the stream.""" |
| 323 | self._pushed.append(token) |
| 324 | |
| 325 | def look(self): |
| 326 | """Look at the next token.""" |