diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-01-12 22:15:26 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-01-12 22:15:26 -0300 |
commit | bcdba3431c72cd0804d9a95972a907b828fb5fad (patch) | |
tree | 210f263e64f5e90726fcf92ec60eb088711787d4 /src/lib.rs |
Prepare VM design
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 16 |
1 files changed, 16 insertions, 0 deletions
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<T> = dyn (Fn(&<T as PatternTypes>::Value) -> bool) + Send + Sync; |