Crate rsc[][src]

This crate is specifically used for one thing: turning expressions inside of a string into a value. This crate acts as a scientific calculator, and includes several functions.

If you need a portion of the calculator changed or removed, please fork it, and make your changes. We encourage others to change RSC to their liking. You do not need to attribute anything to us. This is MIT licensed software.

Modules

computer

For taking the product of the parser and calculating it into a a final form. In this case, the final form is an f64.

lexer

For making notable symbols and words out of text.

parser

For using the symbols generated by the lexer and making sense of them in the context of mathematical expressions.

Enums

EvalError

Functions

eval

Turn an expression inside a string into a number. If you are looking for more control, you may want to use the lexer, parser, and computer modules individually.