Create a new token converter from a string.
(self,tex)
| 129 | return self |
| 130 | |
| 131 | def __init__(self,tex): |
| 132 | """Create a new token converter from a string.""" |
| 133 | self.tex = tuple(_tokenize(tex)) # turn tokens into indexable list |
| 134 | self.pos = 0 # index of first unprocessed token |
| 135 | self.lastoutput = 'x' # lastoutput must always be nonempty string |
| 136 | |
| 137 | def __getitem__(self,n): |
| 138 | """Return token at offset n from current pos.""" |
nothing calls this directly
no test coverage detected