Package lepl :: Package core :: Module config :: Class ParserMixin
[hide private]
[frames] | no frames]

Class ParserMixin

source code


Methods to configure and generate a parser or matcher.
Instance Methods [hide private]
 
__init__(self, *args, **kargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_raw_parser(self, from_=None) source code
 
get_match_file(self)
Get a function that will parse the contents of a file, returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
get_match_items(self)
Get a function that will parse the contents of a sequence of items (an item is something that would be matched by Any), returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
get_match_path(self)
Get a function that will parse the contents of a file, returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
get_match_string(self)
Get a function that will parse the contents of a string, returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
get_match_null(self)
Get a function that will parse the contents of a string or list, returning a sequence of (results, stream) pairs (this does not use streams).
source code
 
get_match(self)
Get a function that will parse input, returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
match_file(self, file_, **kargs)
Parse the contents of a file, returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
match_items(self, list_, **kargs)
Parse the contents of a sequence of items (an item is something that would be matched by Any), returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
match_path(self, path, **kargs)
Parse the contents of a file, returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
match_string(self, string, **kargs)
Parse the contents of a string, returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
match_null(self, stream, **kargs)
Parse the contents of a string or list, returning a sequence of (results, stream) pairs (this does not use streams).
source code
 
match(self, stream, **kargs)
Parse the input, returning a sequence of (results, stream) pairs and using a stream internally.
source code
 
get_parse_file(self)
Get a function that will parse the contents of a file, returning a single match and using a stream internally.
source code
 
get_parse_items(self)
Get a function that will parse the contents of a sequence of items (an item is something that would be matched by Any), returning a single match and using a stream internally.
source code
 
get_parse_path(self)
Get a function that will parse the contents of a file, returning a single match and using a stream internally.
source code
 
get_parse_string(self)
Get a function that will parse the contents of a string, returning a single match and using a stream internally.
source code
 
get_parse_null(self)
Get a function that will parse the contents of a string or list, returning a single match (this does not use streams).
source code
 
get_parse(self)
Get a function that will parse the input, returning a single match and using a stream internally.
source code
 
parse_file(self, file_, **kargs)
Parse the contents of a file, returning a single match and using a stream internally.
source code
 
parse_items(self, list_, **kargs)
Parse the contents of a sequence of items (an item is something that would be matched by Any), returning a single match and using a stream internally.
source code
 
parse_path(self, path, **kargs)
Parse the contents of a file, returning a single match and using a stream internally.
source code
 
parse_string(self, string, **kargs)
Parse the contents of a string, returning a single match and using a stream internally.
source code
 
parse_null(self, stream, **kargs)
Parse the contents of a string or list, returning a single match (this does not use streams).
source code
 
parse(self, stream, **kargs)
Parse the input, returning a single match and using a stream internally.
source code
 
get_parse_file_all(self)
Get a function that will parse the contents of a file, returning a sequence of matches and using a stream internally.
source code
 
get_parse_items_all(self)
Get a function that will parse a sequence of items (an item is something that would be matched by Any), returning a sequence of matches and using a stream internally.
source code
 
get_parse_path_all(self)
Get a function that will parse a file, returning a sequence of matches and using a stream internally.
source code
 
get_parse_string_all(self)
Get a function that will parse a string, returning a sequence of matches and using a stream internally.
source code
 
get_parse_null_all(self)
Get a function that will parse a string or list, returning a sequence of matches (this does not use streams).
source code
 
get_parse_all(self)
Get a function that will parse the input, returning a sequence of matches and using a stream internally.
source code
 
parse_file_all(self, file_, **kargs)
Parse the contents of a file, returning a sequence of matches and using a stream internally.
source code
 
parse_items_all(self, list_, **kargs)
Parse a sequence of items (an item is something that would be matched by Any), returning a sequence of matches and using a stream internally.
source code
 
parse_path_all(self, path, **kargs)
Parse a file, returning a sequence of matches and using a stream internally.
source code
 
parse_string_all(self, string, **kargs)
Parse a string, returning a sequence of matches and using a stream internally.
source code
 
parse_null_all(self, stream, **kargs)
Parse a string or list, returning a sequence of matches (this does not use streams).
source code
 
parse_all(self, stream, **kargs)
Parse the input, returning a sequence of matches and using a stream internally.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kargs)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

get_match(self)

source code 
Get a function that will parse input, returning a sequence of (results, stream) pairs and using a stream internally. The type of stream is inferred from the input to the parser.

match(self, stream, **kargs)

source code 
Parse the input, returning a sequence of (results, stream) pairs and using a stream internally. The type of stream is inferred from the input to the parser.

get_parse(self)

source code 
Get a function that will parse the input, returning a single match and using a stream internally. The type of stream is inferred from the input to the parser.

parse(self, stream, **kargs)

source code 
Parse the input, returning a single match and using a stream internally. The type of stream is inferred from the input to the parser.

get_parse_all(self)

source code 
Get a function that will parse the input, returning a sequence of matches and using a stream internally. The type of stream is inferred from the input to the parser.

parse_all(self, stream, **kargs)

source code 
Parse the input, returning a sequence of matches and using a stream internally. The type of stream is inferred from the input to the parser.