Crate calculator_backend
Source - CCalculationResult
- Stores the result of the calculation
S
- CConversionResult
- Represents the result of converting an infix expression to Reverse Polish Notation (RPN) in a C-compatible format.
- CReversePolishExpression
- Reverse Polish Notatio3n (RPN) as a C syle array
- CalculationResult
- Represents the result of a calculation performed using the C Library.
- ConversionResult
- Represents the result of a conversion between Reverse Polish Notation (RPN) and infix notation.
- History
- Represents the history of calculations performed by the calculator.
- HistoryEntry
- Represents a history entry for a mathematical expression and its result.
- ReversePolish
- Reverse Polish Notation (RPN) expression represented as a vector of strings
- Token
- Represents a single token produced during the tokenization process.
- TokenType
- Token types for the tokenization process.
- calculate_expression
- Endpoint to process a mathematical expression and return the result as a string.
- calculate_rpn⚠
- convert_rpn
- Endpoint to convert a Reverse Polish Notation (RPN) expression to an infix expression.
- display_history
- Displays the history of calculations in a human-readable format.
- get_error_message
- Returns an error message based on given error code.
- get_error_str
- Returns a human-readable error message based on the provided error code.
- get_precedence
- Determines the precedence of an operator.
- infix_to_rpn
- Takes an infix expression and converts it into a Reverse Polish Notation (RPN) expression.
- is_right_associative
- Determines if operator is a right associative.
- tokenize
- Tokenizes an input string into a vector of tokens.