Package SCons :: Package compat :: Module _scons_shlex :: Class shlex
[hide private]
[frames] | no frames]

Class shlex

source code

A lexical analyzer class for simple shell-like syntaxes.

Instance Methods [hide private]
__init__(self, instream=False, infile=False, 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=False)
Push an input source onto the lexer's input source stack.
source code
Pop the input source stack.
source code
Get a token from the input stream (or from stack if it's nonempty)
source code
read_token(self) source code
sourcehook(self, newfile)
Hook called on a filename to be sourced.
source code
error_leader(self, infile=False, lineno=False)
Emit a C-compiler-like, Emacs-friendly error-message leader.
source code
__iter__(self) source code
next(self) source code