A parser for units of measure