object LeanCoPParser extends RegexParsers with PackratParsers
- Source
- LeanCoPParser.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LeanCoPParser
- PackratParsers
- RegexParsers
- Parsers
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class Clause(index: ClauseIndex, cls: FOLFormula, origin: Name) extends Product with Serializable
- type ClauseIndex = Int
- type Elem = Char
- Definition Classes
- RegexParsers → Parsers
- case class Error extends NoSuccess with Product with Serializable
- Definition Classes
- Parsers
- case class Failure extends NoSuccess with Product with Serializable
- Definition Classes
- Parsers
- type Input = Reader[Elem]
- Definition Classes
- Parsers
- case class InputFormula(name: Name, role: Role, formula: FOLFormula) extends Product with Serializable
- type LeanPredicate = (String, Int)
- type Name = String
- sealed abstract class NoSuccess extends ParseResult[Nothing]
- Definition Classes
- Parsers
- trait OnceParser[+T] extends Parser[T]
- Definition Classes
- Parsers
- abstract class PackratParser[+T] extends scala.util.parsing.combinator.PackratParsers.Parser[T]
- Definition Classes
- PackratParsers
- class PackratReader[+T] extends Reader[T]
- Definition Classes
- PackratParsers
- sealed abstract class ParseResult[+T] extends AnyRef
- Definition Classes
- Parsers
- abstract class Parser[+T] extends (Input) => ParseResult[T]
- Definition Classes
- Parsers
- type Role = String
- case class Success[+T] extends ParseResult[T] with Product with Serializable
- Definition Classes
- Parsers
- case class ~[+a, +b] extends Product with Serializable
- Definition Classes
- Parsers
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def OnceParser[T](f: (Input) => ParseResult[T]): Parser[T] with OnceParser[T]
- Definition Classes
- Parsers
- def Parser[T](f: (Input) => ParseResult[T]): Parser[T]
- Definition Classes
- Parsers
- def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
- Definition Classes
- Parsers
- def accept[ES](es: ES)(implicit f: (ES) => List[Elem]): Parser[List[Elem]]
- Definition Classes
- Parsers
- implicit def accept(e: Elem): Parser[Elem]
- Definition Classes
- Parsers
- def acceptIf(p: (Elem) => Boolean)(err: (Elem) => String): Parser[Elem]
- Definition Classes
- Parsers
- def acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
- Definition Classes
- Parsers
- def acceptSeq[ES](es: ES)(implicit f: (ES) => Iterable[Elem]): Parser[List[Elem]]
- Definition Classes
- Parsers
- lazy val and: PackratParser[FOLFormula]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val atom: PackratParser[FOLFormula]
- def chainl1[T, U](first: => Parser[T], p: => Parser[U], q: => Parser[(T, U) => T]): Parser[T]
- Definition Classes
- Parsers
- def chainl1[T](p: => Parser[T], q: => Parser[(T, T) => T]): Parser[T]
- Definition Classes
- Parsers
- def chainr1[T, U](p: => Parser[T], q: => Parser[(T, U) => U], combine: (T, U) => U, first: U): Parser[U]
- Definition Classes
- Parsers
- def clause: Parser[FOLFormula]
- def clauses: Parser[(Int, FOLFormula, String)]
- def clausifyInitialFormula(f: InputFormula, leanPredicates: List[LeanPredicate]): List[FOLFormula]
Clausifies the given formula.
Clausifies the given formula.
The clausification makes use of the predicate symbols introduced by LeanCoP.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def comment: Parser[String]
- def commit[T](p: => Parser[T]): Parser[T]
- Definition Classes
- Parsers
- def constant: Parser[FOLConst]
- def constructExpansionSequent(inputs: List[InputFormula], clauses: List[Clause], bindings: List[(ClauseIndex, FOLSubstitution)]): ExpansionSequent
- lazy val dbl_impl: PackratParser[FOLFormula]
- def elem(e: Elem): Parser[Elem]
- Definition Classes
- Parsers
- def elem(kind: String, p: (Elem) => Boolean): Parser[Elem]
- Definition Classes
- Parsers
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val eq: PackratParser[FOLFormula]
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def err(msg: String): Parser[Nothing]
- Definition Classes
- RegexParsers → Parsers
- def expansionSequent: Parser[Option[ExpansionSequent]]
- def ext_w_bind: Parser[Option[(Int, List[FOLVar], List[FOLTerm])]]
- def extension: Parser[Option[(Int, List[FOLVar], List[FOLTerm])]]
- def failure(msg: String): Parser[Nothing]
- Definition Classes
- Parsers
- lazy val formula: PackratParser[FOLFormula]
- def function: Parser[FOLTerm]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getExpansionProof(reader: Reader): Option[ExpansionSequent]
- def getExpansionProof(file: InputFile): Option[ExpansionSequent]
- def getLeanPreds(cls: FOLFormula): List[(String, Int)]
- def guard[T](p: => Parser[T]): Parser[T]
- Definition Classes
- Parsers
- def handleWhiteSpace(source: CharSequence, offset: Int): Int
- Attributes
- protected
- Definition Classes
- RegexParsers
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- lazy val impl: PackratParser[FOLFormula]
- def inferences: Parser[Option[(Int, List[FOLVar], List[FOLTerm])]]
- def info: Parser[Option[(Int, List[FOLVar], List[FOLTerm])]]
- def input: Parser[(String, String, FOLFormula)]
- def integer: Parser[Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def language: Parser[String]
- lazy val lean_atom: PackratParser[FOLFormula]
- def lean_var: Parser[(Int, List[FOLTerm])]
- def list_subs: Parser[(List[FOLVar], List[FOLTerm])]
- implicit def literal(s: String): Parser[String]
- Definition Classes
- RegexParsers
- def log[T](p: => Parser[T])(name: String): Parser[T]
- Definition Classes
- Parsers
- def lower_word_or_integer: Parser[String]
- def matchClauses(my_clauses: List[FOLFormula], lean_clauses: List[FOLFormula]): Option[FOLSubstitution]
- def memo[T](p: Parser[T]): PackratParser[T]
- Definition Classes
- PackratParsers
- def mkList[T]: (~[T, List[T]]) => List[T]
- Definition Classes
- Parsers
- def name: Parser[String]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val neg: PackratParser[FOLFormula]
- def not[T](p: => Parser[T]): Parser[Unit]
- Definition Classes
- Parsers
- lazy val not_eq: PackratParser[FOLFormula]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def opt[T](p: => Parser[T]): Parser[Option[T]]
- Definition Classes
- Parsers
- lazy val or: PackratParser[FOLFormula]
- def parse[T](p: Parser[T], in: Reader): ParseResult[T]
- Definition Classes
- RegexParsers
- def parse[T](p: Parser[T], in: CharSequence): ParseResult[T]
- Definition Classes
- RegexParsers
- def parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
- Definition Classes
- RegexParsers
- def parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]
- Definition Classes
- RegexParsers
- def parseAll[T](p: Parser[T], in: Reader): ParseResult[T]
- Definition Classes
- RegexParsers
- def parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
- Definition Classes
- RegexParsers
- implicit def parser2packrat[T](p: => Parser[T]): PackratParser[T]
- Definition Classes
- PackratParsers
- def phrase[T](p: Parser[T]): PackratParser[T]
- Definition Classes
- PackratParsers → Parsers
- def polarityByRole(r: Role): Polarity
- def positioned[T <: Positional](p: => Parser[T]): Parser[T]
- Definition Classes
- RegexParsers → Parsers
- lazy val quantified: PackratParser[FOLFormula]
- lazy val real_atom: PackratParser[FOLFormula]
- def reduction: Parser[Option[(Int, List[FOLVar], List[FOLTerm])]]
- implicit def regex(r: Regex): Parser[String]
- Definition Classes
- RegexParsers
- def rep[T](p: => Parser[T]): Parser[List[T]]
- Definition Classes
- Parsers
- def rep1[T](first: => Parser[T], p0: => Parser[T]): Parser[List[T]]
- Definition Classes
- Parsers
- def rep1[T](p: => Parser[T]): Parser[List[T]]
- Definition Classes
- Parsers
- def rep1sep[T](p: => Parser[T], q: => Parser[Any]): Parser[List[T]]
- Definition Classes
- Parsers
- def repN[T](num: Int, p: => Parser[T]): Parser[List[T]]
- Definition Classes
- Parsers
- def repNM[T](n: Int, m: Int, p: Parser[T], sep: Parser[Any]): Parser[List[T]]
- Definition Classes
- Parsers
- def repsep[T](p: => Parser[T], q: => Parser[Any]): Parser[List[T]]
- Definition Classes
- Parsers
- def role: Parser[String]
- def single_quoted: Parser[String]
- def skipWhitespace: Boolean
- Definition Classes
- LeanCoPParser → RegexParsers
- def skolem_term: Parser[FOLTerm]
- def start: Parser[Option[(Int, List[FOLVar], List[FOLTerm])]]
- def start_bind: Parser[Option[(Int, List[FOLVar], List[FOLTerm])]]
- def success[T](v: T): Parser[T]
- Definition Classes
- Parsers
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def term: Parser[FOLTerm]
- def toDefinitionalClausalForm(f: FOLFormula, leanPredicates: List[LeanPredicate]): List[FOLFormula]
Computes the definitional clausal form of a given formula.
Computes the definitional clausal form of a given formula.
- f
The formula in NNF whose DCF is to be constructed.
- leanPredicates
The predicates available for the DCF construction.
- returns
A list list of clauses in DNF (possibly with introduced definitions) corresponding to the definitional clausal form of the input formula
- def toMagicalDNF(f: FOLFormula): List[FOLFormula]
- def toString(): String
- Definition Classes
- AnyRef → Any
- def variable: Parser[FOLVar]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val whiteSpace: Regex
- Attributes
- protected
- Definition Classes
- RegexParsers
- object FOLLiteral
This is the API documentation for GAPT.
The main package is gapt.