Enum xxcalc::Token [] [src]

pub enum Token {
    BracketOpening,
    BracketClosing,
    Separator,
    Number(f64),
    Operator(char),
    Identifier(usize),
    Unknown(char),
    Skip,
}

Token is a basic unit returned after tokenization using a StringProcessor.

Token can be than rearranged with a TokensProcessor and interpreted (evaluated) to a Polynomial using a TokensReducer.

Tokens are used to conveniently store expressions in partially parsed and computer readable form.

Variants

Opening bracket ( or beginning of subexpression

Closing bracket ) or ending of subexpression

Argument separator

Floating point number

Single character operator

Symbol identifier (represented by index in identifiers table)

Unidentified character (with no meaning to a StringProcessor)

Skip marker

Trait Implementations

impl Debug for Token
[src]

Formats the value using the given formatter.

impl PartialEq for Token
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Token
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more