aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/codegen/rust.ungram40
1 files changed, 20 insertions, 20 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index b6ec5d5e7..08db70093 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -1,6 +1,22 @@
1SourceFile = 1SourceFile =
2 Attr* 2 Attr*
3 items:ModuleItem* 3 Item*
4
5Item =
6 ConstDef
7| EnumDef
8| ExternBlock
9| ExternCrateItem
10| FnDef
11| ImplDef
12| MacroCall
13| Module
14| StaticDef
15| StructDef
16| TraitDef
17| TypeAliasDef
18| UnionDef
19| UseItem
4 20
5FnDef = 21FnDef =
6 Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? 22 Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList?
@@ -59,7 +75,7 @@ Module =
59ItemList = 75ItemList =
60 '{' 76 '{'
61 AssocItem* 77 AssocItem*
62 items:ModuleItem* 78 Item*
63 '}' 79 '}'
64 80
65ConstDef = 81ConstDef =
@@ -168,7 +184,7 @@ Label =
168BlockExpr = 184BlockExpr =
169 Attr* Label 185 Attr* Label
170 '{' 186 '{'
171 items:ModuleItem* 187 Item*
172 statements:Stmt* 188 statements:Stmt*
173 Expr? 189 Expr?
174 '}' 190 '}'
@@ -316,7 +332,7 @@ TokenTree =
316 '(' ')' | '{' '}' | '[' ']' 332 '(' ')' | '{' '}' | '[' ']'
317 333
318MacroItems = 334MacroItems =
319 items:ModuleItem* 335 Item*
320 336
321MacroStmts = 337MacroStmts =
322 statements:Stmt* 338 statements:Stmt*
@@ -454,22 +470,6 @@ AssocItem =
454ExternItem = 470ExternItem =
455 FnDef | StaticDef 471 FnDef | StaticDef
456 472
457ModuleItem =
458 StructDef
459| UnionDef
460| EnumDef
461| FnDef
462| TraitDef
463| TypeAliasDef
464| ImplDef
465| UseItem
466| ExternCrateItem
467| ConstDef
468| StaticDef
469| Module
470| MacroCall
471| ExternBlock
472
473AttrInput = 473AttrInput =
474 Literal 474 Literal
475| TokenTree 475| TokenTree