Structs

Stores errors from the parser if any occur. error: The message of the error. Accessed with .get_error() pos: The position of the error. Accessed with .get_pos()

Functions

Solves an equation in infix notation using the shunting yard algorithm. this function will not accept decimals numbers, only integers.

Solves an equation in infix notation using the shunting yard algorithm. this function will accept decimals and will convert integers to decimals.

Solves an equation in infix notation using the shunting yard algorithm. This will not accept decimal numbers, only integers. this function takes a HashMap of definitions (type Definitions) and will replace identifiers found in the equation with their respective values.

Solves an equation in infix notation using the shunting yard algorithm. This accepts decimal numbers, and will convert passed in integer numbers to decimal. this function takes a HashMap of definitions (type Definitions) and will replace identifiers found in the equation with their respective values.

Type Definitions

A list of definitions to pass into the crate to be used in the interpreter.