parameters: (self, input_lines)
docstring: Parses list of lines.
  
      Args:
        input_lines: A list of strings of input to parse (no newlines on the
                     strings).
  
      Raises:
        PDDMError if there are any issues.
docstring_summary: Parses list of lines.
docstring_tokens: Parses list of lines .
function: def ParseLines(self, input_lines):
      """Parses list of lines.
  
      Args:
        input_lines: A list of strings of input to parse (no newlines on the
                     strings).
  
      Raises:
        PDDMError if there are any issues.
      """
      current_macro = None
      for line in input_lines:
        if line.startswith('PDDM-'):
          directive = line.split(' ', 1)[0]
          if directive == 'PDDM-DEFINE':
            name, args = self._ParseDefineLine(line)
            if self._macros.get(name):
              raise PDDMError('Attempt to redefine macro: "%s"' % line)
            current_macro = self.MacroDefinition(name, args)
            self._macros[name] = current_macro
            continue
          if directive == 'PDDM-DEFINE-END':
            if not current_macro:
              raise PDDMError('Got DEFINE-END directive without an active macro:'
                              ' "%s"' % line)
            current_macro = None
            continue
          raise PDDMError('Hit a line with an unknown directive: "%s"' % line)
  
        if current_macro:
          current_macro.AppendLine(line)
          continue
  
        # Allow blank lines between macro definitions.
        if line.strip() == '':
          continue
  
        raise PDDMError('Hit a line that wasn\'t a directive and no open macro'
                        ' definition: "%s"' % line)
function_tokens: def ParseLines ( self , input_lines ) : current_macro = None for line in input_lines : if line . startswith ( 'PDDM-' ) : directive = line . split ( ' ' , 1 ) [ 0 ] if directive == 'PDDM-DEFINE' : name , args = self . _ParseDefineLine ( line ) if self . _macros . get ( name ) : raise PDDMError ( 'Attempt to redefine macro: "%s"' % line ) current_macro = self . MacroDefinition ( name , args ) self . _macros [ name ] = current_macro continue if directive == 'PDDM-DEFINE-END' : if not current_macro : raise PDDMError ( 'Got DEFINE-END directive without an active macro:' ' "%s"' % line ) current_macro = None continue raise PDDMError ( 'Hit a line with an unknown directive: "%s"' % line ) if current_macro : current_macro . AppendLine ( line ) continue # Allow blank lines between macro definitions. if line . strip ( ) == '' : continue raise PDDMError ( 'Hit a line that wasn\'t a directive and no open macro' ' definition: "%s"' % line )