diff --git a/monobloc/src/lib.rs b/monobloc/src/lib.rs index c728017..cb4e421 100644 --- a/monobloc/src/lib.rs +++ b/monobloc/src/lib.rs @@ -2,8 +2,10 @@ mod host; mod script; +mod value; pub use self::{ host::{Host, HostFn, HostFnAttrs}, script::{CompileError, Script}, + value::Value, }; diff --git a/monobloc/src/value.rs b/monobloc/src/value.rs new file mode 100644 index 0000000..535e134 --- /dev/null +++ b/monobloc/src/value.rs @@ -0,0 +1,9 @@ +/// # Representation of a value +/// +/// At this point, Monobloc is still an untyped language. All values are +/// represented as 32-bit words. +#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct Value { + /// The value + pub bits: u32, +}