code: def _parse(self, lines, grammar, ignore_comments=False):
          
          results = []
          for c in lines:
              if c != '' and not (ignore_comments and c[0] == '#'):
                  try:
                      results.append(grammar.parseString(c))
                  except pyparsing.ParseException as e:
                      raise ValueError('Invalid syntax. Verify line {} is '
                          'correct.\n{}\n\n{}'.format(e.lineno, c, e))
          return results
docs: Given a type and a list, parse it using the more detailed
          parse grammar.