ACC SHELL
Ñò
sÄMc @ s d Z d Z d d k Z d d k Z d d k l Z d Z h a d „ Z d e f d „ ƒ YZ d e f d
„ ƒ YZ
d e f d „ ƒ YZ d
„ Z d e f d „ ƒ YZ
d e
f d „ ƒ YZ d e
f d „ ƒ YZ d e
f d „ ƒ YZ d e
f d „ ƒ YZ d „ Z d S( sÌ
Python parse tree definitions.
This is a very concrete parse tree; we need to keep every token and
even the comments and whitespace between tokens.
There's also a pattern matching implementation here.
s# Guido van Rossum <guido@python.org>iÿÿÿÿN( t StringIOiÿÿÿc C sl t pU d d k l } xB | i i ƒ D]- \ } } t | ƒ t j o | t | <q' q' Wn t i | | ƒ S( Ni ( t python_symbols( t _type_reprst pygramR t __dict__t itemst typet intt
setdefault( t type_numR t namet val( ( s$ /usr/lib/python2.6/lib2to3/pytree.pyt type_repr s t Basec B så e Z d Z d Z d Z d Z e Z d „ Z d „ Z
d Z d „ Z d „ Z
d „ Z d „ Z d „ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d
„ Z e d „ ƒ Z e d „ ƒ Z d „ Z e i d j o
d „ Z n RS( sÂ
Abstract base class for Node and Leaf.
This provides some default functionality and boilerplate using the
template pattern.
A node may be a subnode of at most one parent.
c O s
t i | ƒ S( s7 Constructor that prevents Base from being instantiated.( t objectt __new__( t clst argst kwds( ( s$ /usr/lib/python2.6/lib2to3/pytree.pyR 3 s c C s% | i | i j o t S| i | ƒ S( sW
Compare two nodes for equality.
This calls the method _eq().
( t __class__t NotImplementedt _eq( t selft other( ( s$ /usr/lib/python2.6/lib2to3/pytree.pyt __eq__8 s c C s&