Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
ZMc @ s d Z d Z d d k Z d d k l Z l Z l Z l Z l Z l Z d d k
l Z d d k
l Z e i
i e i
i e d Z d e f d
YZ d Z d e f d
YZ h e i d 6e i d 6e i d 6d d 6Z d Z d Z d Z d S( s Pattern compiler.
The grammer is taken from PatternGrammar.txt.
The compiler compiles a pattern to a pytree.*Pattern instance.
s# Guido van Rossum iNi ( t drivert literalst tokent tokenizet parset grammar( t pytree( t pygrams PatternGrammar.txtt PatternSyntaxErrorc B s e Z RS( ( t __name__t
__module__( ( ( s% /usr/lib/python2.6/lib2to3/patcomp.pyR s c c sy t t i t i t i f } t i t i | i } x9 | D]1 } | \ } } } } } | | j o | Vq@ q@ Wd S( s6 Tokenizes a string suppressing significant whitespace.N(
t setR t NEWLINEt INDENTt DEDENTR t generate_tokensR t generate_linest next( t inputt skipt tokenst quintuplet typet valuet startt endt line_text( ( s% /usr/lib/python2.6/lib2to3/patcomp.pyt tokenize_wrapper s
t PatternCompilerc B s> e Z e d Z e d Z d Z d d Z d Z RS( c C s^ t i | | _ t i | i | _ t i | _ t i | _ t i
| i d t | _ d S( s^ Initializer.
Takes an optional alternative filename for the pattern grammar.
t convertN( R t load_grammarR R t Symbolst symst python_grammart pygrammart python_symbolst pysymst Drivert pattern_convert( t selft grammar_file( ( s% /usr/lib/python2.6/lib2to3/patcomp.pyt __init__, s
c C sb t | } y | i i | d | } Wn* t i j
o } t t | n X| i | S( s= Compiles a pattern string to a nested pytree.*Pattern object.t debug( R R t parse_tokensR t
ParseErrorR t strt compile_node( R' R R* R t roott e( ( s% /usr/lib/python2.6/lib2to3/patcomp.pyt compile_pattern7 s c C s
| i | i i j o | i d } n | i | i i j o g } | i d d d D] } | | i | qX ~ } t | d j o | d St i g } | D] } | | g q ~ d d d d } | i S| i | i i
j or g } | i D] } | | i | q ~ } t | d j o | d St i | g d d d d } | i S| i | i i j o0 | i | i d }
t i
|
} | i S| i | i i j p t d } | i } t | d j o2 | d i t i j o | d i } | d } n d }
t | d j o2 | d i | i i j o | d }
| d } n | i | |
}
|
d j oi|
i | i i j p t |
i } | d } | i t i j o d } t i } n | i t i j o d } t i } n | i t i j o} | d i t i j p t t | d
j p t | i | d } } t | d j o | i | d } qn t p t | d j p
| d j o1 |
i }
t i |
g g d | d | }
qn | d j o
| |
_ n |
i S( sX Compiles a node, recursively.
This is one big switch on the node type.
i Ni i t mint maxi ii ( i i ( R R t Matchert childrent AlternativesR. t lenR t WildcardPatternt optimizet Alternativet NegatedUnitt
compile_basict NegatedPatternt Unitt AssertionErrort NoneR t EQUALR t Repeatert STARt HUGEt PLUSt LBRACEt RBRACEt get_intt Falset name( R' t nodet _[1]t cht altst _[2]t at pt _[3]t unitst patternRJ t nodest repeatR5 t childR2 R3 ( ( s% /usr/lib/python2.6/lib2to3/patcomp.pyR. @ sh : 9- *
-
)
c C s t | d j p t | d } | i t i j o/ t t i | i } t i
t | | S| i t i j o| i } | i
oN | t j o t d | n | d o t d n t i
t | S| d j o
d } nK | i d p: t | i | d } | d j o t d | q>n | d o! | i | d i d g } n d } t i | | Snz | i d j o | i | d S| i d j oG | d j p t | i | d } t i | g g d
d d d St p
t | d S( Ni i s Invalid token: %rs Can't have details for tokent anyt _s Invalid symbol: %rt (t [R2 R3 ( R7 R? R R t STRINGt unicodeR t
evalStringR R t LeafPatternt _type_of_literalt NAMEt isuppert TOKEN_MAPR R@ t
startswitht getattrR$ R. R5 t NodePatternR8 RI ( R' RU RV RK R R t contentt
subpattern( ( s% /usr/lib/python2.6/lib2to3/patcomp.pyR<