Copyright | (c) Masahiro Sakai 2011-2015 |
---|---|
License | BSD-style |
Maintainer | masahiro.sakai@gmail.com |
Portability | non-portable (BangPatterns, OverloadedStrings) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A parser library for OPB/WBO files used in pseudo boolean competition.
References:
- Input/Output Format and Solver Requirements for the Competitions of Pseudo-Boolean Solvers http://www.cril.univ-artois.fr/PB11/format.pdf
Synopsis
Parsing OPB files
parseOPBByteString :: ByteString -> Either String Formula Source #
Parse a OPB format string containing pseudo boolean problem.
parseOPBFile :: FilePath -> IO (Either String Formula) Source #
Parse a OPB file containing pseudo boolean problem.
Parsing WBO files
wboParser :: Parser SoftFormula Source #
Parser for WBO files
parseWBOByteString :: ByteString -> Either String SoftFormula Source #
Parse a WBO format string containing weighted boolean optimization problem.
parseWBOFile :: FilePath -> IO (Either String SoftFormula) Source #
Parse a WBO file containing weighted boolean optimization problem.