Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16)

Side by Side Diff: Parser/Python.asdl

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Parser/asdl_c.py ('k') | PC/pyconfig.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 -- ASDL's four builtin types are identifier, int, string, object 1 -- ASDL's four builtin types are identifier, int, string, object
2 2
3 module Python 3 module Python
4 { 4 {
5 mod = Module(stmt* body) 5 mod = Module(stmt* body)
6 | Interactive(stmt* body) 6 | Interactive(stmt* body)
7 | Expression(expr body) 7 | Expression(expr body)
8 8
9 -- not really an actual node but useful in Jython's typesystem. 9 -- not really an actual node but useful in Jython's typesystem.
10 | Suite(stmt* body) 10 | Suite(stmt* body)
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 operator = Add | Sub | Mult | Div | Mod | Pow | LShift 93 operator = Add | Sub | Mult | Div | Mod | Pow | LShift
94 | RShift | BitOr | BitXor | BitAnd | FloorDiv 94 | RShift | BitOr | BitXor | BitAnd | FloorDiv
95 95
96 unaryop = Invert | Not | UAdd | USub 96 unaryop = Invert | Not | UAdd | USub
97 97
98 cmpop = Eq | NotEq | Lt | LtE | Gt | GtE | Is | IsNot | In | NotIn 98 cmpop = Eq | NotEq | Lt | LtE | Gt | GtE | Is | IsNot | In | NotIn
99 99
100 comprehension = (expr target, expr iter, expr* ifs) 100 comprehension = (expr target, expr iter, expr* ifs)
101 101
102 -- not sure what to call the first argument for raise and except
102 excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body) 103 excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body)
103 attributes (int lineno, int col_offset) 104 attributes (int lineno, int col_offset)
104 105
105 arguments = (arg* args, identifier? vararg, expr? varargannotation, 106 arguments = (arg* args, identifier? vararg, expr? varargannotation,
106 arg* kwonlyargs, identifier? kwarg, 107 arg* kwonlyargs, identifier? kwarg,
107 expr? kwargannotation, expr* defaults, 108 expr? kwargannotation, expr* defaults,
108 expr* kw_defaults) 109 expr* kw_defaults)
109 arg = (identifier arg, expr? annotation) 110 arg = (identifier arg, expr? annotation)
110 111
111 -- keyword arguments supplied to call 112 -- keyword arguments supplied to call
112 keyword = (identifier arg, expr value) 113 keyword = (identifier arg, expr value)
113 114
114 -- import name with optional 'as' alias. 115 -- import name with optional 'as' alias.
115 alias = (identifier name, identifier? asname) 116 alias = (identifier name, identifier? asname)
116 117
117 withitem = (expr context_expr, expr? optional_vars) 118 withitem = (expr context_expr, expr? optional_vars)
118 } 119 }
119 120
OLDNEW
« no previous file with comments | « Parser/asdl_c.py ('k') | PC/pyconfig.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+