litex-lang 0.9.86-beta

A simple formal proof language and verifier, learnable in 2 hours
Documentation
use crate::prelude::*;
use std::fmt;

// From a `family` definition and type args, relate `\name(args)` to the instantiated `equal_to` set.
#[derive(Clone)]
pub struct ByFamilyAsSetStmt {
    pub family_obj: Obj,
    pub line_file: LineFile,
}

impl fmt::Display for ByFamilyAsSetStmt {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(
            f,
            "{} {} {} {}{} {}",
            BY, FAMILY, AS, SET, COLON, self.family_obj
        )
    }
}

impl ByFamilyAsSetStmt {
    pub fn new(family_obj: Obj, line_file: LineFile) -> Self {
        ByFamilyAsSetStmt {
            family_obj,
            line_file,
        }
    }
}