Current Path : /usr/local/lib/python2.5/compiler/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/python2.5/compiler/syntax.pyc |
łň hRc @ s? d Z d d k l Z l Z d d Z d d d YZ d S( s8 Check 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˙˙˙˙( t astt walkc C s t | } t | | | i S( N( t SyntaxErrorCheckerR t errors( t treet multit v( ( s+ /usr/local/lib/python2.5/compiler/syntax.pyt check s R c B s, e Z d Z d d Z d Z d Z RS( s+ A visitor to find syntax errors in the AST.c C s | | _ d | _ d S( 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. i N( R R ( t selfR ( ( s+ /usr/local/lib/python2.5/compiler/syntax.pyt __init__ s c C s\ | i d | _ | i d j o d | i | i | f GHn t d | | i | i f d S( Ni s %s:%s: %ss %s (%s:%s)( R R t Nonet filenamet linenot SyntaxError( R t nodet msg( ( s+ /usr/local/lib/python2.5/compiler/syntax.pyt error s c C s d S( N( ( R R ( ( s+ /usr/local/lib/python2.5/compiler/syntax.pyt visitAssign' s N( t __name__t __module__t __doc__R R R R ( ( ( s+ /usr/local/lib/python2.5/compiler/syntax.pyR s N( ( R t compilerR R R R R ( ( ( s+ /usr/local/lib/python2.5/compiler/syntax.pys <module> s