diff options
author | JJ | 2023-04-05 07:24:06 +0000 |
---|---|---|
committer | JJ | 2023-04-05 16:17:05 +0000 |
commit | a68aa104c91a617a2d78a1015f786dce7fdac795 (patch) | |
tree | 8264bf5c55492c4ebef49d8b2d7289efefcf6698 /src/effects.rs |
wip
Diffstat (limited to 'src/effects.rs')
-rw-r--r-- | src/effects.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/effects.rs b/src/effects.rs new file mode 100644 index 0000000..4c4c110 --- /dev/null +++ b/src/effects.rs @@ -0,0 +1,19 @@ +// Simple types for effects + +use crate::ast::*; + +// bad and wrong and useless +pub struct Effection { + expr: Expression, + effect: Effect, +} + +// yeah i'm not dealing with this yet +pub enum Effect { + Empty, + Total, + Exn, + Pure, + IO, +} + |