Create a parser; omitted options share the default cache, supplied options create an isolated scope.
Optionalconfig: ParserConfigInputEstimated retention for the cache shared by this configuration.
Immutable effective parser settings.
Release all plans shared by this parser configuration.
Parse and evaluate a complete scalar/unit expression.
Expression supporting products, division, powers, groups, scientific notation, and Unicode multiplication/superscript notation.
Decimal constructor for evaluation; defaults to the shared Decimal context. Quantity supplies its configured context automatically.
A fresh definition with a Decimal scalar and frozen counted units. Unit arrays may be shared with cached plans.
QuantityParseError for invalid or incomplete syntax, unknown units, invalid exponents, and scalar-evaluation failures.
Non-throwing form of parse(), with the same validation and structured errors.
Parser for scalar products/division, compound units, powers, and nested groups. Powers bind first, then dot products; * / and whitespace evaluate left to right. Compiled expression plans are shared within a configuration; scalar evaluation follows the original operation order and the current Decimal configuration on every call.