|
Methods defined here:
- __init__(self, instream=None, infile=None, posix=False)
- __iter__(self)
- error_leader(self, infile=None, lineno=None)
- Emit a C-compiler-like, Emacs-friendly error-message leader.
- get_token(self)
- Get a token from the input stream (or from stack if it's nonempty)
- next(self)
- pop_source(self)
- Pop the input source stack.
- push_source(self, newstream, newfile=None)
- Push an input source onto the lexer's input source stack.
- push_token(self, tok)
- Push a token onto the stack popped by the get_token method
- read_token(self)
- sourcehook(self, newfile)
- Hook called on a filename to be sourced.
|