示例#1
0
 def get_parse_all(self):
     '''
     Get a function that will parse input, returning a sequence of 
     matches.  The type of stream is inferred from the input to the 
     parser.
     '''
     return make_multiple(self.get_match())
示例#2
0
 def 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.
     '''
     return make_multiple(self.get_match_items())
示例#3
0
 def get_parse_iterable_all(self):
     '''
     Get a function that will parse the contents of an iterable
     (eg. a generator), returning a sequence of matches.  The data will 
     be read as required.
     '''
     return make_multiple(self.get_match_iterable())
示例#4
0
 def get_parse_all(self):
     '''
     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.
     '''
     return make_multiple(self.get_match())
示例#5
0
文件: config.py 项目: gcarothers/lepl
 def get_parse_iterable_all(self):
     '''
     Get a function that will parse the contents of an iterable
     (eg. a generator), returning a sequence of matches.  The data will 
     be read as required.
     '''
     return make_multiple(self.get_match_iterable())
示例#6
0
 def 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.
     '''
     return make_multiple(self.get_match_items())
示例#7
0
 def get_parse_file_all(self):
     '''
     Get a function that will parse the contents of a file, returning a 
     sequence of matches.  The data will be read as required (using an 
     iterator), so the file must remain open during parsing.  To avoid 
     this, read all data into a string and parse that.
     '''
     return make_multiple(self.get_match_file())
示例#8
0
文件: config.py 项目: gcarothers/lepl
 def get_parse_file_all(self):
     '''
     Get a function that will parse the contents of a file, returning a 
     sequence of matches.  The data will be read as required (using an 
     iterator), so the file must remain open during parsing.  To avoid 
     this, read all data into a string and parse that.
     '''
     return make_multiple(self.get_match_file())
示例#9
0
 def get_parse_string_all(self):
     '''
     Get a function that will parse a string, returning a 
     sequence of matches and using a stream internally.
     '''
     return make_multiple(self.get_match_string())
示例#10
0
 def get_parse_sequence_all(self):
     '''
     Get a function that will parse the contents of a generic sequence
     (with [] and len()) returning a sequence of matches.
     '''
     return make_multiple(self.get_match_sequence())
示例#11
0
 def get_parse_string_all(self):
     '''
     Get a function that will parse a string, returning a sequence of 
     matches.
     '''
     return make_multiple(self.get_match_string())
示例#12
0
 def get_parse_list_all(self):
     '''
     Get a function that will parse the contents of a list returning a 
     sequence of matches.
     '''
     return make_multiple(self.get_match_list())
示例#13
0
 def 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).
     '''
     return make_multiple(self.get_match_null())
示例#14
0
 def get_parse_path_all(self):
     '''
     Get a function that will parse a file, returning a 
     sequence of matches and using a stream internally.
     '''
     return make_multiple(self.get_match_path())
示例#15
0
 def 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.
     '''
     return make_multiple(self.get_match_file())
示例#16
0
文件: config.py 项目: gcarothers/lepl
 def get_parse_sequence_all(self):
     '''
     Get a function that will parse the contents of a generic sequence
     (with [] and len()) returning a sequence of matches.
     '''
     return make_multiple(self.get_match_sequence())
示例#17
0
文件: config.py 项目: gcarothers/lepl
 def get_parse_list_all(self):
     '''
     Get a function that will parse the contents of a list returning a 
     sequence of matches.
     '''
     return make_multiple(self.get_match_list())
示例#18
0
 def 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).
     '''
     return make_multiple(self.get_match_null())