package parser
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- case class QPLexingException(msg: String) extends QuantityParserException with Product with Serializable
- case class QPParsingException(msg: String) extends QuantityParserException with Product with Serializable
- class QuantityParser extends Serializable
A class that can parse an expression into a unit-typed Quantity
A class that can parse an expression into a unit-typed Quantity
import coulomb.parser._ // declare a parser with a particular set of legal units val qp = QuantityParser[Meter :: Second :: Kilo :: HNil] val duration = qp[Int, Minute]("60 second") // a duration of one minute val speed = qp[Double, Mile %/ Hour]("10.0 kilometer / second") // prefix units are parsed
- sealed class QuantityParserException extends Exception