old_contents: #!/usr/bin/env python
  """
  :Author Patrik Valkovic
  :Created 01.08.2017 07:33
  :Licence GNUv3
  Part of grammpy
  
  """
  
  from .MultipleRulesGrammar import MultipleRulesGrammar as Grammar
  
  
  class PrettyApiGrammar(Grammar):
      def __init__(self,
                   terminals=None,
                   nonterminals=None,
                   rules=None,
                   start_symbol=None):
          if isinstance(terminals, str):
              temp = []
              for ch in terminals:
                  temp.append(ch)
              terminals = temp
          super().__init__(terminals=terminals,
                           nonterminals=nonterminals,
                           rules=rules,
                           start_symbol=start_symbol)
  
new_contents: #!/usr/bin/env python
  """
  :Author Patrik Valkovic
  :Created 01.08.2017 07:33
  :Licence GNUv3
  Part of grammpy
  
  """
  
  from .MultipleRulesGrammar import MultipleRulesGrammar as Grammar
  
  
  class PrettyApiGrammar(Grammar):
      def __init__(self,
                   terminals=None,
                   nonterminals=None,
                   rules=None,
                   start_symbol=None):
          if isinstance(terminals, str):
              temp = []
              for ch in terminals:
                  temp.append(ch)
              terminals = temp
          super().__init__(terminals=terminals,
                           nonterminals=nonterminals,
                           rules=rules,
                           start_symbol=start_symbol)
      def __copy__(self):
          return PrettyApiGrammar(terminals=(t.s for t in self.terms()),
                                  nonterminals=self.nonterms(),
                                  rules=self.rules(),
                                  start_symbol=self.start_get())
  
subject: Add __copy__ method to grammar