diff --git a/src/mixin.rs b/src/mixin.rs new file mode 100644 index 0000000..e7f98bb --- /dev/null +++ b/src/mixin.rs @@ -0,0 +1,84 @@ +use crate::common::Scope; +use crate::common::Symbol; +use crate::style::Style; +use crate::{Token, TokenKind}; + +#[derive(Debug, Clone)] +pub struct Mixin { + scope: Scope, + args: FuncArgs, + body: Vec, +} + +impl Mixin { + pub fn new(scope: Scope, args: FuncArgs, body: Vec) -> Self { + Mixin { scope, args, body } + } + + pub fn eval(&mut self) -> Vec