1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pub extern crate pax_macro;
pub use pax_macro::*;

pub use pax_runtime_api as api;

pub use pax_runtime_api::log;
pub use pax_runtime_api::Property;
pub use declarative_macros::*;

mod declarative_macros {
    #[macro_export]
    macro_rules! pax_struct {
        ($name:ident { $($field:ident : $value:expr),* $(,)? }) => {
            $name {
                $(
                    $field: Box::new(PropertyLiteral::new($value)),
                )*
            }
        };
    }
}