Type of a function that can parse a string for a numeric value of type N.
Exception thrown when operating on two units that are not interconvertible.
Exception thrown when parsing encounters an unexpected token.
A quantity parser
Contains the symbols of the units and the prefixes that a parser can handle.
Creates a compile-time parser that parses a string for a quantity and automatically deduces the quantity type.
This module defines functions to parse units and quantities. The text input is parsed according to the following grammar. For example:
Grammar: (whitespace not significant)