// http://www.iiia.csic.es/~maxsat06/solver-requirements.html // Format for the MaxSAT Competition 2006 // needs a semantic checker for: // weight must be positve between 1 and 2^20 // variable name must be a positive integer between 1 and numVars // WCNF = Preamble Formula EOF. Preamble = "p" "wcnf" int int. Formula = List(Clause). Clause = Weight List(Literal) ClauseTerminator. Weight = int. ClauseTerminator = " 0". List(S) ~ {S}. Literal : Pos | Neg common Variable. Variable : Numero | Name. Numero = int. Name = Ident. Pos = . Neg = "-". Main = .