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