mod builder;
use crate::{Command, Variable, VariableId};
pub use builder::*;
use std::collections::BTreeMap;
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Rule {
pub command: Command,
pub shadow: BTreeMap<VariableId, Variable>,
pub generator: bool,
}
impl Rule {
pub fn create(command: Command) -> Self {
Rule {
command,
generator: false,
shadow: BTreeMap::new(),
}
}
}