parameters: ( self )
return_statement: return [res.asList() if isinstance(res,ParseResults) else res for res in self.__toklist]
docstring: Returns the parse results as a nested list of matching tokens, all converted to strings.
  
  
  
          Example::
  
              patt = OneOrMore(Word(alphas))
  
              result = patt.parseString("sldkj lsdkj sldkj")
  
              # even though the result prints in string-like form, it is actually a pyparsing ParseResults
  
              print(type(result), result) # -> <class 'pyparsing.ParseResults'> ['sldkj', 'lsdkj', 'sldkj']
  
              
  
              # Use asList() to create an actual list
  
              result_list = result.asList()
  
              print(type(result_list), result_list) # -> <class 'list'> ['sldkj', 'lsdkj', 'sldkj']
function: def asList( self ):
  
          """
  
          Returns the parse results as a nested list of matching tokens, all converted to strings.
  
  
  
          Example::
  
              patt = OneOrMore(Word(alphas))
  
              result = patt.parseString("sldkj lsdkj sldkj")
  
              # even though the result prints in string-like form, it is actually a pyparsing ParseResults
  
              print(type(result), result) # -> <class 'pyparsing.ParseResults'> ['sldkj', 'lsdkj', 'sldkj']
  
              
  
              # Use asList() to create an actual list
  
              result_list = result.asList()
  
              print(type(result_list), result_list) # -> <class 'list'> ['sldkj', 'lsdkj', 'sldkj']
  
          """
  
          return [res.asList() if isinstance(res,ParseResults) else res for res in self.__toklist]
function_tokens: def asList ( self ) : return [ res . asList ( ) if isinstance ( res , ParseResults ) else res for res in self . __toklist ]