Ñò
4×ÛQc           @   s`   d  d k  Z  d „  Z d d „ Z e d j o. d  d k Z e e e i d ƒ i ƒ  ƒ GHn d S(   iÿÿÿÿNc         C   s%   t  i d t  i ƒ } | i d |  ƒ S(   s<   remove all /* */ format comments and surrounding whitespace.s   [\s]*/\*.*?\*/[\s]*t    (   t   ret   compilet   DOTALLt   sub(   t   datat   p(    (    s   ../tools\minimize.pyt   strip_comments_helper   s    c         C   sg   x` t  ƒ  i ƒ  D]O \ } } | i d ƒ o3 | d  } | p | | j o | |  ƒ }  q_ q q W|  S(   sÿ   Central function call. This will call all other compression
       functions. To add further compression algorithms, simply add
       functions whose names end in _helper which take a string as input 
       and return a more compressed string as output.t   _helperiùÿÿÿ(   t   globalst	   iteritemst   endswith(   R   t   excludet   keyt   itemt   func_key(    (    s   ../tools\minimize.pyt   minimize!   s     
t   __main__i   (	   R   R   t   NoneR   t   __name__t   syst   opent   argvt   read(    (    (    s   ../tools\minimize.pyt   <module>   s
   	