final class TPTPParser extends AnyRef
- Alphabetic
- By Inheritance
- TPTPParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Token = (TPTPLexerTokenType, String, LineNo, Offset)
- type TokenType = TPTPLexer.TPTPLexerTokenType.Value
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 EOF(): Unit
- def annotatedCNF(): CNFAnnotated
Parse an annotated CNF formula.
Parse an annotated CNF formula.
- returns
Representation of the annotated formula as CNFAnnotated
- Exceptions thrown
TPTPParseException
if the underlying input does not represent a valid annotated CNF formula
- def annotatedFOF(): FOFAnnotated
Parse an annotated FOF formula.
Parse an annotated FOF formula.
- returns
Representation of the annotated formula as FOFAnnotated
- Exceptions thrown
TPTPParseException
if the underlying input does not represent a valid annotated FOF formula
- def annotatedFormula(): AnnotatedFormula
- def annotatedTCF(): TCFAnnotated
Parse an annotated TCF formula.
Parse an annotated TCF formula.
- returns
Representation of the annotated formula as TCFAnnotated
- Exceptions thrown
TPTPParseException
if the underlying input does not represent a valid annotated TCF formula
- def annotatedTFF(tfx: Boolean): TFFAnnotated
Parse an annotated TFF formula.
Parse an annotated TFF formula.
- tfx
If set to
true
, accept TFX formulas as well (default); otherwise exclude TFX inputs.- returns
Representation of the annotated formula as TFFAnnotated
- Exceptions thrown
TPTPParseException
if the underlying input does not represent a valid annotated TFF formula
- def annotatedTHF(): THFAnnotated
Parse an annotated THF formula.
Parse an annotated THF formula.
- returns
Representation of the annotated formula as THFAnnotated
- Exceptions thrown
TPTPParseException
if the underlying input does not represent a valid annotated THF formula
- def annotatedTPI(): TPIAnnotated
Parse an annotated TPI formula.
Parse an annotated TPI formula.
- returns
Representation of the annotated formula as TPIAnnotated
- Exceptions thrown
TPTPParseException
if the underlying input does not represent a valid annotated TPI formula
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def cnfLogicFormula(): Formula
- def comment(): Comment
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fofLogicFormula(): Formula
- def fofTerm(): Term
- def fofUnitFormula(): Formula
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def include(): (String, Seq[String])
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def role(): String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tcfFormula(): Statement
- def tcfLogicFormula(): Formula
- def tffFormula(tfx: Boolean): Statement
- def tffLogicFormula(tfx: Boolean): Formula
- def tffTerm(tfx: Boolean): Term
- def thfLogicFormula(): Formula
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tptpFile(): Problem
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
This is the documentation for the Scala TPTP parser used, e.g., by the Leo-III prover.
Package structure
The leo package contains two sub-packages as follows:
leo.datastructures
contains the leo.datastructures.TPTP object that bundles the different abstract syntax tree (AST) representations for the different TPTP language dialects, including ...leo.datastructures.TPTP.THF
- Higher-order formulas (THF)leo.datastructures.TPTP.TFF
- Typed first-order formulas (TFF)leo.datastructures.TPTP.FOF
- Untyped first-order formulas (FOF)leo.datastructures.TPTP.TCF
- Typed clausal form (TCF)leo.datastructures.TPTP.CNF
- Untyped clausal form (CNF)leo.modules.input
- the parser itself.Usage (in short)
The leo.modules.input.TPTPParser offers several parsing methods:
Exemplary use case