Packages

p

coulomb

parser

package parser

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. case class QPLexingException(msg: String) extends QuantityParserException with Product with Serializable
  2. case class QPParsingException(msg: String) extends QuantityParserException with Product with Serializable
  3. 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
  4. sealed class QuantityParserException extends Exception

Value Members

  1. object QuantityParser extends Serializable
  2. object ast
  3. object infra
  4. object lexer
  5. object parser
  6. object unitops

Ungrouped