class documentation
Tokenizer for the field mask grammar.
| Parameters | |
| source | Mask string to tokenize. |
| Method | __init__ |
Undocumented |
| Method | __iter__ |
Yield tokens until end-of-input. |
| Method | consume |
Advance the lexer position by the length of prefix. |
| Method | next |
Scan and return the next token. |
| Method | scan |
Scan a plain (unquoted) key token. |
| Method | scan |
Scan a quoted key token. |
| Method | starts |
Return True if the remaining input starts with prefix. |
| Instance Variable | pos |
Current cursor position. |
| Instance Variable | source |
Input string being tokenized. |
Scan and return the next token.
| Returns | |
Token | Next Token instance. |
| Raises | |
ContextedParseError | If an unexpected character is found. |