From bcdba3431c72cd0804d9a95972a907b828fb5fad Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Tue, 12 Jan 2021 22:15:26 -0300 Subject: Prepare VM design --- src/lib.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/lib.rs (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..9e84de1 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,16 @@ +pub mod errors; +mod parser; +mod pattern; +mod vm; + +pub use pattern::Pattern; + +// TODO +pub trait PatternTypes { + /// The value type. + type Value; + type Iter; +} + +// TODO +pub type Predicate = dyn (Fn(&::Value) -> bool) + Send + Sync; -- cgit 1.4.1