Hacked By AnonymousFox

Current Path : /opt/alt/python27/lib64/python2.7/compiler/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/compiler/syntax.pyc

�
^
bc@s?dZddlmZmZdd�Zddd��YZdS(s8Check for errs in the AST.

The Python parser does not catch all syntax errors.  Others, like
assignments with invalid targets, are caught in the code generation
phase.

The compiler package catches some errors in the transformer module.
But it seems clearer to write checkers that use the AST to detect
errors.
i����(tasttwalkcCs t|�}t||�|jS(N(tSyntaxErrorCheckerRterrors(ttreetmultitv((s4/opt/alt/python27/lib64/python2.7/compiler/syntax.pytchecks
RcBs,eZdZdd�Zd�Zd�ZRS(s+A visitor to find syntax errors in the AST.cCs||_d|_dS(s�Create new visitor object.

        If optional argument multi is not None, then print messages
        for each error rather than raising a SyntaxError for the
        first.
        iN(RR(tselfR((s4/opt/alt/python27/lib64/python2.7/compiler/syntax.pyt__init__s	cCsZ|jd|_|jdk	r:d|j|j|fGHntd||j|jf�dS(Nis	%s:%s: %ss
%s (%s:%s)(RRtNonetfilenametlinenotSyntaxError(Rtnodetmsg((s4/opt/alt/python27/lib64/python2.7/compiler/syntax.pyterror scCsdS(N((RR((s4/opt/alt/python27/lib64/python2.7/compiler/syntax.pytvisitAssign'sN(t__name__t
__module__t__doc__R
R	RR(((s4/opt/alt/python27/lib64/python2.7/compiler/syntax.pyRs
	N((RtcompilerRRR
RR(((s4/opt/alt/python27/lib64/python2.7/compiler/syntax.pyt<module>
s

Hacked By AnonymousFox1.0, Coded By AnonymousFox