Create a parser with optional cache limits. Omitted options share the default configuration. Separately supplied option objects isolate retention; passing an already resolved configuration reuses it.
Optionalconfig: ParserConfigInputEstimated retention for the cache shared by this configuration.
Immutable effective parser settings.
Release all plans shared by this parser configuration.
Rebuild shared unit patterns and clear unit caches across all Regex parser configurations. Called automatically on first construction; ordinary parsing does not require this method.
Parse a scalar and counted units without expanding powers.
Expression such as "2 kg*m/s^2", "m", or "2".
Adapter used to evaluate the scalar.
Optionalscope: CacheScope
Optional Quantity cache scope; wrappers should forward it unchanged.
Optionalscalar: T
Optional replacement scalar. The parser validates the units and skips scalar evaluation.
A definition accepted by Quantity. Empty sides represent unity.
Regex parser for scalar and unit expressions without parenthesized grouping. Receives the numeric adapter explicitly; importing this engine does not load Decimal. Powers bind first, then dot products; * / and whitespace evaluate left to right.