A lexical analyzer class for simple shell-like syntaxes.
There are no base classes.
There are no implemented interfaces.
There are no attributes in this class.
error_leader(infile=None, lineno=None)
Emit a C-compiler-like, Emacs-friendly error-message leader.
get_token()
Get a token from the input stream (or from stack if it's nonempty)
next()
pop_source()
Pop the input source stack.
push_source(newstream, newfile=None)
Push an input source onto the lexer's input source stack.
push_token(tok)
Push a token onto the stack popped by the get_token method
read_token()
sourcehook(newfile)
Hook called on a filename to be sourced.
There are no known subclasses.