Initial draft of formula parser.