/opt/alt/python33/lib64/python3.3/lib2to3
NameSizeModeActions
fixes/-0755rm
pgen2/-0755rm
__pycache__/-0755rm
btm_matcher.py68330644editdlrm
btm_utils.py100110644editdlrm
fixer_base.py67060644editdlrm
fixer_util.py145520644editdlrm
Grammar.txt65890644editdlrm
Grammar3.3.7.final.0.pickle208800644editdlrm
main.py116240644editdlrm
patcomp.py70750644editdlrm
PatternGrammar.txt7930644editdlrm
PatternGrammar3.3.7.final.0.pickle14550644editdlrm
pygram.py11140644editdlrm
pytree.py283860644editdlrm
refactor.py280420644editdlrm
__init__.py70644editdlrm
__main__.py670644editdlrm
Edit: /opt/alt/python33/lib64/python3.3/lib2to3/PatternGrammar.txt (793B)
# Copyright 2006 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. # A grammar to describe tree matching patterns. # Not shown here: # - 'TOKEN' stands for any token (leaf node) # - 'any' stands for any node (leaf or interior) # With 'any' we can still specify the sub-structure. # The start symbol is 'Matcher'. Matcher: Alternatives ENDMARKER Alternatives: Alternative ('|' Alternative)* Alternative: (Unit | NegatedUnit)+ Unit: [NAME '='] ( STRING [Repeater] | NAME [Details] [Repeater] | '(' Alternatives ')' [Repeater] | '[' Alternatives ']' ) NegatedUnit: 'not' (STRING | NAME [Details] | '(' Alternatives ')') Repeater: '*' | '+' | '{' NUMBER [',' NUMBER] '}' Details: '<' Alternatives '>'