Attic/programs/formulas2.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 15 Dec 2016 14:26:43 +0000
changeset 501 0d40d1f973e0
parent 198 2ce98ee39990
permissions -rw-r--r--
updated

abstract class Term
case class Var(s: String) extends Term
case class Consts(s: String) extends Term
case class Fun(s: String, ts: List[Term]) extends Term

abstract class Form
case object True extends Form
case object False extends Form
case class And(f1: Form, f2: Form) extends Form
case class Or(f1: Form, f2: Form) extends Form
case class Imp(f1: Form, f2: Form) extends Form
case class Neg(f: Form) extends Form
case class Pred(s: String, ts: List[Term]) extends Form
case class Says(s: String, f: Form) extends Form