quantrs2-tytan 0.1.3

High-level quantum annealing interface inspired by Tytan for the QuantRS2 framework
Documentation
//! Macro system for the problem DSL.

use super::ast::{Expression, Statement};

/// Macro definition
#[derive(Debug, Clone)]
pub struct Macro {
    pub name: String,
    pub parameters: Vec<String>,
    pub body: MacroBody,
}

#[derive(Debug, Clone)]
pub enum MacroBody {
    /// Text substitution
    Text(String),
    /// Expression macro
    Expression(Box<Expression>),
    /// Statement macro
    Statement(Box<Statement>),
}