class Scanner:
Simple scanner
All method patterns are regular expression strings (not compiled expressions!)
Method | __init__ |
|
Method | __repr__ |
Undocumented |
Method | check |
Apply pattern on the current position and return the match object. (Doesn't touch pos). Use this for lookahead. |
Method | eos |
True if the scanner reached the end of text. |
Method | get_char |
Scan exactly one char. |
Method | scan |
No summary |
Method | test |
Apply a pattern on the current position and check if it patches. Doesn't touch pos. |
Instance Variable | _re_cache |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | data_length |
Undocumented |
Instance Variable | flags |
Undocumented |
Instance Variable | last |
Undocumented |
Instance Variable | match |
Undocumented |
Instance Variable | pos |
Undocumented |
Instance Variable | start_pos |
Undocumented |
Parameters | |
text | The text which should be scanned |
flags | default regular expression flags |
pattern
on the current position and return
the match object. (Doesn't touch pos). Use this for
lookahead.