Trait xxcalc::TokensReducer [] [src]

pub trait TokensReducer {
    fn process(&self, tokens: &Tokens) -> Result<PolynomialEvaluationError>;
}

Evaluates list of tokens into a single Polynomial value.

A TokensReducer takes a list of tokens in some expected arrangement and evaluates them into a single Polynomial value. It can be used for implementation of various computational languages (such as the scientific calcualtor).

Required Methods

Implementors