We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd41490 commit 87f7d66Copy full SHA for 87f7d66
src/lib.rs
@@ -4,6 +4,7 @@ use pest_derive::Parser;
4
5
pub mod path;
6
pub mod expr;
7
+pub mod types;
8
pub mod report;
9
10
#[derive(Parser)]
src/types.rs
@@ -0,0 +1,29 @@
1
+use crate::path::RzPath;
2
+
3
+pub enum TypeExpr {
+ Top,
+ Bottom,
+ Bool,
+ Int,
+ U(usize, bool),
11
+ S(usize, bool),
12
13
+ Arr(Box<TypeExpr>, Box<TypeExpr>),
14
+ Str(Box<TypeExpr>),
15
+ // Seq(Box<TypeExpr>),
16
17
+ And(Vec<TypeExpr>),
18
+ Or(Vec<TypeExpr>),
19
20
+ Ref(RzPath),
21
22
+ Liq(Box<TypeExpr>, Vec<Pred>),
23
+ Size(Box<TypeExpr>),
24
+ Val(Value, Box<TypeExpr>),
25
+}
26
27
+pub enum Pred { }
28
29
+pub enum Value { }
0 commit comments