/opt/alt/python37/lib64/python3.7/lib2to3
# 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 '>'
.
Edit
..
Edit
Grammar.txt
Edit
Grammar3.7.17.final.0.pickle
Edit
PatternGrammar.txt
Edit
PatternGrammar3.7.17.final.0.pickle
Edit
__init__.py
Edit
__main__.py
Edit
__pycache__
Edit
btm_matcher.py
Edit
btm_utils.py
Edit
fixer_base.py
Edit
fixer_util.py
Edit
fixes
Edit
main.py
Edit
patcomp.py
Edit
pgen2
Edit
pygram.py
Edit
pytree.py
Edit
refactor.py
Edit