class documentation
class Token: (source)
Single token with type, string value, and source position.
| Method | __repr__ |
Return a debug representation of the token. |
| Method | copy |
Return a shallow copy of the token. |
| Method | unquote |
Convert a quoted key token into a plain key token. |
| Instance Variable | pos |
Character position in the input. |
| Instance Variable | type |
Token type. |
| Instance Variable | value |
Raw token value. |
Convert a quoted key token into a plain key token.
| Returns | |
Token | Token with unquoted value. |
| Raises | |
ParseError | If the token cannot be unquoted to a string. |