
    0c                          S SK r  " S S5      rg)    Nc                   >    \ rS rSrS rS rS rS rS rS r	S r
S	rg
)Rexer   c                    [        U5      R                  nU R                  5         0 U l        US:X  a<  Xl        U R                  R
                  R                  U l        U R                  5         OQUS:X  aK  0 U l        U R                   H3  n[        R                  " U R                  U   5      U R                  U'   M5     g U R                   H3  n[        R                  " U R                  U   5      U R                  U'   M5     g )NErimpAbovo)type__name__set_for_constantsrseabovo	constantsset_the_othersssrecompile)selfargargtypess       !/home/ernad/ernad/python/rexer.py__init__Rexer.__init__   s    s)$$ gF!VV\\33DN!DGWWZZ
3
 ADGGAJ/DGGAJ     c                 ^    0 U l         SU R                   S'   U R                   S==   S-  ss'   g )Nz&\s{2}<variable name="([^"]+)" select="is_constants_linez'([^"]+)'"/>)r   )r   s    r   r   Rexer.set_for_constants   s.    'P#$#$(EE$r   c                    SnSn0 nSU-   S-   US'   SUS'   US   S-   US   -   US	'   SU-   S-   US
'   SUS'   [         R                  " U R                  S   5      US'   US   [         R                  " S5      -   US'   SU-   S-   U-   US   -   S-   US'   SU-   S-   U-   US   -   S-   US'   SUS'   US==   S-  ss'   X0l        g )Nz\d{4}-\d{2}-\d{2}z[a-z0-9]{6}^$is_datez(\d{4}-\d{2}-\d{2})has_date_has_double_dateis_shotiz^[a-z]{3,4}-[a-z0-9]+$
is_repcodeext_amfamf_extz.gz
amf_ext_gzis_rif	is_rif_gzz(\s*<variable\s+name="([^"]+)"\s+select="	conf_linez'([^']+)'"/>\s*$|)r   escaper   r   )r   date_reshoti_rer   s       r   r   Rexer.set_the_others   s   ( g+91: ": 4n!x#-:3<		$..";<9i=299U+;;<W}s*X59EK8-#-8|"#;G;
;44r   c                 `    U R                   R                  U R                  S   5      (       a  gg)Nr"   TF)r   matchr   r   strings     r   r"   Rexer.is_date/   s$    77==+,,r   c                 n    SU R                   ;  a  gU R                   S   R                  U5      (       a  gg)Nr'   FTr   r3   r4   s     r   r'   Rexer.is_repcode4   s1    tww&77< &&v..r   c                     U R                   S   R                  U5      (       a  gU R                   S   R                  U5      (       a  gg)Nr,   Tr+   Fr8   r4   s     r   r+   Rexer.is_rif;   s?    77;%%f--778""6**r   c                 H    U R                   S   R                  U5      nUS   $ )Nr#   r   )r   search)r   r5   matchess      r   get_issuedateRexer.get_issuedateB   s%    ''*%,,V4qzr   )r   r   r   r   N)r
   
__module____qualname____firstlineno__r   r   r   r"   r'   r+   r?   __static_attributes__ r   r   r   r      s&    0"F
(
r   r   )r   r   rE   r   r   <module>rF      s    	A Ar   