Copyright | Michael Thomas |
---|---|
License | GPL-3 |
Maintainer | Michael Thomas <Michaelt293@gmail.com> |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
This module provides parsers for element symbols as well molecular, empirical and condensed formulae. In addition, QuasiQuoters are provided.
Parsers
elementSymbol :: Parser ElementSymbol Source #
Parses an element symbol string.
subFormula :: Parser MolecularFormula Source #
Parses an sub-formula (i.e., "C2").
molecularFormula :: Parser MolecularFormula Source #
Parses a molecular formula (i.e. "C6H6").
condensedFormula :: Parser CondensedFormula Source #
Parses a condensed formula, i.e., "N(CH3)3".
mol :: QuasiQuoter Source #
emp :: QuasiQuoter Source #
con :: QuasiQuoter Source #