Safe Haskell | Safe-Inferred |
---|
A simple parser designed to read the optimization string from an argument
and together with the input computes the result of the the optimization
query. Without mkSingleOp
and mkMultiOp
this just a trivial parser for
simple arithmetic. The addional operations provide access to user-defined
functions that can, for example, be used to calculate the energy of a
sequence-structure pair. Those functions are not defined here but in the
application that uses the parser.
Documentation
parseOptString :: NumSecStructs -> [SingleOp] -> [MultiOp] -> [GlobalOp] -> [PropOp] -> String -> DoubleSource