klvmr 0.6.1

Implementation of `klvm` for Chik Network's cryptocurrency
Documentation
use crate::allocator::{Allocator, NodePtr};
use crate::cost::Cost;
use crate::reduction::Response;

#[repr(u32)]
#[derive(Clone, Copy, Eq, PartialEq)]
pub enum OperatorSet {
    Default,
    BLS,
}

pub trait Dialect {
    fn quote_kw(&self) -> u32;
    fn apply_kw(&self) -> u32;
    fn softfork_kw(&self) -> u32;
    fn softfork_extension(&self, ext: u32) -> OperatorSet;
    fn op(
        &self,
        allocator: &mut Allocator,
        op: NodePtr,
        args: NodePtr,
        max_cost: Cost,
        extensions: OperatorSet,
    ) -> Response;
    fn allow_unknown_ops(&self) -> bool;
}