|
|
__init__(self,
matcher)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
__start(self)
Set default values on demand to avoid dependency loop. |
source code
|
|
|
|
add_rewriter(self,
rewriter)
Add a rewriter that will be applied to the matcher graph when the
parser is generated. |
source code
|
|
|
|
remove_rewriter(self,
rewriter)
Remove a rewriter from the current configuration. |
source code
|
|
|
|
remove_all_rewriters(self,
type_=None)
Remove all rewriters of a given type from the current configuration. |
source code
|
|
|
|
|
|
|
remove_all_monitors(self)
Remove all monitors from the current configuration. |
source code
|
|
|
|
|
|
|
add_stream_kargs(self,
**kargs)
Add a value for passing to the stream factory. |
source code
|
|
|
|
remove_all_stream_kargs(self)
Remove all values passed to the stream factory. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
changed(self)
Has the config been changed by the user since it was last returned
via configuration? if not, any previously generated parser can be
reused. |
source code
|
|
|
|
clear_cache(self)
Force calculation of a new parser. |
source code
|
|
|
|
set_arguments(self,
type_,
**kargs)
Set the given keyword arguments on all matchers of the given type_
(ie class) in the grammar. |
source code
|
|
|
|
no_set_arguments(self)
Remove all rewriters that set arguments. |
source code
|
|
|
|
|
|
|
|
|
|
no_full_first_match(self)
Disable the automatic generation of an error if the first match fails. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compile_to_re(self,
force=False,
alphabet=None)
Compile simple matchers to re (C library) regular expressions. |
source code
|
|
|
|
no_compile_to_regexp(self)
Disable compilation of simple matchers to regular expressions. |
source code
|
|
|
|
|
|
|
no_optimize_or(self)
Disable the re-ordering of some Or() arguments. |
source code
|
|
|
|
lexer(self,
alphabet=None,
discard=None,
lexer=None)
Detect the use of Token() and modify the parser to use the lexer. |
source code
|
|
|
|
no_lexer(self)
Disable support for the lexer. |
source code
|
|
|
|
direct_eval(self,
spec=None)
Combine simple matchers so that they are evaluated without
trampolining. |
source code
|
|
|
|
no_direct_eval(self)
Disable direct evaluation. |
source code
|
|
|
|
|
|
|
no_compose_transforms(self)
Disable the composition of transforms. |
source code
|
|
|
|
auto_memoize(self,
conservative=None,
full=True,
d=0)
This configuration attempts to detect which memoizer is most effective
for each matcher. |
source code
|
|
|
|
|
|
|
right_memoize(self)
Add memoization that can make some complex parsers (with a lot of
backtracking) more efficient. |
source code
|
|
|
|
|
|
|
lines(self,
discard=None,
tabsize=8,
block_policy=None,
block_start=None)
Configure "offside parsing". |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
cache_level(self,
level=1)
Control when the stream can be cached internally (this is used for
debugging and error messages) - streams are cached for debugging when
the value is greater than zero. |
source code
|
|
|
|
|
|
|
clear(self)
Delete any earlier configuration and disable the default (so no
rewriters or monitors are used). |
source code
|
|
|
|
default(self)
Provide the default configuration (deleting what may have been
configured previously). |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|