| |
- __builtin__.object
-
- Scanner
- exceptions.Exception(exceptions.BaseException)
-
- TokenizerException
class Scanner(__builtin__.object) |
| |
Methods defined here:
- __call__(self, text)
- Iteratively scans through text and yield each token
- __init__(self, **tokens)
- add(self, **tokens)
- Each named keyword is a token type and its value is the
corresponding regular expression. Returns a function that iterates
tokens in the form (type, value) over a string.
Special keywords are discard_names and discard_values, which specify
lists (actually any iterable is accepted) containing tokens names or
values that must be discarded from the scanner output.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|