expression_engine 0.7.0

An expression engine written in pure rust
Documentation
use crate::operator::{InfixOpManager, PostfixOpManager, PrefixOpManager};

pub fn is_prefix_op(op: &str) -> bool {
    PrefixOpManager::new().exist(op)
}

pub fn is_infix_op(op: &str) -> bool {
    InfixOpManager::new().exist(op)
}

pub fn is_postfix_op(op: &str) -> bool {
    PostfixOpManager::new().exist(op)
}

pub fn is_ternary_op(op: &str) -> bool {
    op == "?" || op == ":"
}

pub fn is_op(op: &str) -> bool {
    is_prefix_op(op) || is_infix_op(op) || is_postfix_op(op) || is_ternary_op(op)
}

pub fn is_not(op: &str) -> bool {
    op == "not"
}