tokenize(self) -> generator Split self into tokens and return generator object.
(self)
| 41 | return locals['_'] |
| 42 | |
| 43 | def tokenize(self): |
| 44 | """ |
| 45 | tokenize(self) -> generator |
| 46 | |
| 47 | Split self into tokens and return generator object. |
| 48 | """ |
| 49 | for token in re.split('(<\?.*?\?>)', self): |
| 50 | if token.startswith('<?') and token.endswith('?>'): |
| 51 | yield token |
| 52 | |
| 53 | else: |
| 54 | for ref in re.split('(###[\w_.]*)', token): |
| 55 | yield ref |
| 56 | |
| 57 | def compile(self): |
| 58 | """ |
no test coverage detected