cas-compute 0.2.0

Tools for evaluation of CalcScript expressions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use cas_attrs::builtin;
use crate::numerical::value::Value;

/// Prints the given value to stdout with a trailing newline.
#[derive(Debug)]
pub struct Print;

#[cfg_attr(feature = "numerical", builtin)]
impl Print {
    pub fn eval_static(v: &Value) {
        println!("{}", v);
    }
}