| 102 | # The 2 classes below have the same API as TokenInfo, but don't try to look up |
| 103 | # a token type name that they won't find. |
| 104 | class IncompleteString: |
| 105 | type = exact_type = INCOMPLETE_STRING |
| 106 | def __init__(self, s, start, end, line): |
| 107 | self.s = s |
| 108 | self.start = start |
| 109 | self.end = end |
| 110 | self.line = line |
| 111 | |
| 112 | class InMultilineStatement: |
| 113 | type = exact_type = IN_MULTILINE_STATEMENT |