added compile functions to formula
updated grammars and parsers