diff options
Diffstat (limited to 'xtask/src/codegen/rust.ungram')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 93195befe..aef07cb1e 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -222,7 +222,7 @@ Expr = | |||
222 | | IfExpr | 222 | | IfExpr |
223 | | IndexExpr | 223 | | IndexExpr |
224 | | Label | 224 | | Label |
225 | | LambdaExpr | 225 | | ClosureExpr |
226 | | Literal | 226 | | Literal |
227 | | LoopExpr | 227 | | LoopExpr |
228 | | MacroCall | 228 | | MacroCall |
@@ -266,14 +266,14 @@ PrefixExpr = | |||
266 | 266 | ||
267 | BinExpr = | 267 | BinExpr = |
268 | Attr* | 268 | Attr* |
269 | Expr | 269 | lhs:Expr |
270 | op:( | 270 | op:( |
271 | '||' | '&&' | 271 | '||' | '&&' |
272 | | '==' | '!=' | '<=' | '>=' | '<' | '>' | 272 | | '==' | '!=' | '<=' | '>=' | '<' | '>' |
273 | | '+' | '*' | '-' | '/' | '%' | '<<' | '>>' | '^' | '|' | '&' | 273 | | '+' | '*' | '-' | '/' | '%' | '<<' | '>>' | '^' | '|' | '&' |
274 | | '=' | '+=' | '/=' | '*=' | '%=' | '>>=' | '<<=' | '-=' | '|=' | '&=' | '^=' | 274 | | '=' | '+=' | '/=' | '*=' | '%=' | '>>=' | '<<=' | '-=' | '|=' | '&=' | '^=' |
275 | ) | 275 | ) |
276 | Expr | 276 | rhs:Expr |
277 | 277 | ||
278 | CastExpr = | 278 | CastExpr = |
279 | Attr* Expr 'as' Type | 279 | Attr* Expr 'as' Type |
@@ -288,7 +288,7 @@ ArrayExpr = | |||
288 | ) ']' | 288 | ) ']' |
289 | 289 | ||
290 | IndexExpr = | 290 | IndexExpr = |
291 | Attr* Expr '[' Expr ']' | 291 | Attr* base:Expr '[' index:Expr ']' |
292 | 292 | ||
293 | TupleExpr = | 293 | TupleExpr = |
294 | Attr* '(' Attr* (Expr (',' Expr)* ','?)? ')' | 294 | Attr* '(' Attr* (Expr (',' Expr)* ','?)? ')' |
@@ -318,13 +318,13 @@ MethodCallExpr = | |||
318 | FieldExpr = | 318 | FieldExpr = |
319 | Attr* Expr '.' NameRef | 319 | Attr* Expr '.' NameRef |
320 | 320 | ||
321 | LambdaExpr = | 321 | ClosureExpr = |
322 | Attr* 'static'? 'async'? 'move'? ParamList RetType? | 322 | Attr* 'static'? 'async'? 'move'? ParamList RetType? |
323 | body:Expr | 323 | body:Expr |
324 | 324 | ||
325 | IfExpr = | 325 | IfExpr = |
326 | Attr* 'if' Condition BlockExpr | 326 | Attr* 'if' Condition then_branch:BlockExpr |
327 | ('else' (IfExpr | BlockExpr))? | 327 | ('else' else_branch:(IfExpr | BlockExpr))? |
328 | 328 | ||
329 | Condition = | 329 | Condition = |
330 | 'let' Pat '=' Expr | 330 | 'let' Pat '=' Expr |
@@ -352,7 +352,7 @@ ContinueExpr = | |||
352 | Attr* 'continue' 'lifetime'? | 352 | Attr* 'continue' 'lifetime'? |
353 | 353 | ||
354 | RangeExpr = | 354 | RangeExpr = |
355 | Attr* Expr? op:('..' | '..=') Expr? | 355 | Attr* start:Expr? op:('..' | '..=') end:Expr? |
356 | 356 | ||
357 | MatchExpr = | 357 | MatchExpr = |
358 | Attr* 'match' Expr MatchArmList | 358 | Attr* 'match' Expr MatchArmList |