| commit | 7876235c3f26a517f4a31ce036b23f891757c8da | [log] [tgz] |
|---|---|---|
| author | Xiangpeng Hao <haoxiangpeng123@gmail.com> | Thu Nov 12 10:24:18 2020 +0800 |
| committer | Xiangpeng Hao <haoxiangpeng123@gmail.com> | Tue Nov 24 20:23:29 2020 -0800 |
| tree | 385baed8a05a9aad905c19c2ad40b2c3120102b3 | |
| parent | bf1000f40e3755a2cebfcd59b35f30b591765749 [diff] [blame] |
add initial array support
diff --git a/syntax/mod.rs b/syntax/mod.rs index 2a3790c..4d65874 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -165,6 +165,7 @@ Void(Span), Slice(Box<Slice>), SliceRefU8(Box<Ref>), + Array(Box<Array>), } pub struct Ty1 { @@ -189,6 +190,13 @@ pub inner: Type, } +pub struct Array { + pub bracket: Bracket, + pub inner: Type, + pub semi_token: Token![;], + pub len: usize, +} + #[derive(Copy, Clone, PartialEq)] pub enum Lang { Cxx,