base library
Support for evaluating
Classes
- ComputeContext
- A compute context defines some rules the lexer/parser/evaluator must follow
- DefaultComputeContext
- A default, complete implementation of ComputeContext.
- Rational
- A number that can be expressed as a fraction of two integers, a numerator and a non-zero denominator.
- Result
- Represents a real number and its imaginary parts.
Enums
- ComputationStep
- A list computation steps used to evaluate an expression.
Extensions
Functions
-
compute(
String input, {ComputeContext context = const DefaultComputeContext()}) → Result -
Takes an
inputexpression and returns its result.
Exceptions / Errors
- ComputationError
- An error caused by the input expression (coming from the user)