c

at.logic.gapt.formats.babel

BabelExporter

class BabelExporter extends AnyRef

Exports lambda expressions in the Babel format. You probably do not want to use this class, use one of expression.toString, .toSigRelativeString, or .toAsciiString instead. These are all implemented using this class.

Source
export.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BabelExporter
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BabelExporter(unicode: Boolean, sig: BabelSignature, omitTypes: Boolean = false)

    unicode

    Whether to output logical connectives using Unicode symbols.

    sig

    The Babel signature, to decide whether we need to escape constants because they do not fit the naming convention.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from BabelExporter to any2stringadd[BabelExporter] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (BabelExporter, B)
    Implicit
    This member is added by an implicit conversion from BabelExporter to ArrowAssoc[BabelExporter] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val asciiUnquotName: Regex
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val defaultIndent: Int
  10. def ensuring(cond: (BabelExporter) ⇒ Boolean, msg: ⇒ Any): BabelExporter
    Implicit
    This member is added by an implicit conversion from BabelExporter to Ensuring[BabelExporter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (BabelExporter) ⇒ Boolean): BabelExporter
    Implicit
    This member is added by an implicit conversion from BabelExporter to Ensuring[BabelExporter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): BabelExporter
    Implicit
    This member is added by an implicit conversion from BabelExporter to Ensuring[BabelExporter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): BabelExporter
    Implicit
    This member is added by an implicit conversion from BabelExporter to Ensuring[BabelExporter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def export(ty: Ty): String
  17. def export(sequent: HOLSequent): String
  18. def export(expr: Expr): String
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from BabelExporter to StringFormat[BabelExporter] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. def group(doc: Doc): Doc
    Attributes
    protected
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  24. val infixRel: Set[String]
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def knownConstantTypesFromSig(consts: Iterable[Const]): Iterable[(String, Const)]
  27. val lineWidth: Int
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def nest(doc: Doc, j: Int = defaultIndent): Doc
  30. final def notify(): Unit
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  32. def parenIf(enclosingPrio: Int, currentPrio: Int, doc: Doc): Doc
  33. def parens(doc: Doc): Doc
    Attributes
    protected
  34. val safeChars: Regex
  35. def show(ty: Ty, needParens: Boolean): Doc
  36. def show(expr: Expr, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst], p: Int): (Doc, Map[String, VarOrConst])

    Converts a lambda expression into a document.

    Converts a lambda expression into a document.

    At every point in the conversion, we keep track of:

    1. Whether the parser will already know the type of this expression (by inference)
    2. What type the free identifiers have.
    3. What priority the enclosing operator has.
    expr

    The lambda expression to convert.

    knownType

    Whether we already know the type of this expression.

    bound

    Names bound by enclosing binders.

    t0

    Already used free identifiers, together with the variable or constant they represent.

    p

    The priority of the enclosing operator.

    returns

    Pretty-printed document and the free identifiers.

  37. def show(sequent: HOLSequent, bound: Set[String], t0: Map[String, VarOrConst]): (Doc, Map[String, VarOrConst])
  38. def showApps(expr: Expr, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst], p: Int): (Doc, Map[String, VarOrConst])
  39. def showBin(sym: String, prio: Int, leftPrioBias: Int, rightPrioBias: Int, a: Expr, b: Expr, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst], p: Int): (Doc, Map[String, VarOrConst])
  40. def showBinOp(c: Const, prio: Int, leftPrioBias: Int, rightPrioBias: Int, a: Expr, b: Expr, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst], p: Int): (Doc, Map[String, VarOrConst])
  41. def showName(name: String): Doc
  42. def showQuant(sym: String, v: Var, e: Expr, bound: Set[String], t0: Map[String, VarOrConst], p: Int): (Doc, Map[String, VarOrConst])
  43. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def [B](y: B): (BabelExporter, B)
    Implicit
    This member is added by an implicit conversion from BabelExporter to ArrowAssoc[BabelExporter] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
  49. object prio

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from BabelExporter to any2stringadd[BabelExporter]

Inherited by implicit conversion StringFormat from BabelExporter to StringFormat[BabelExporter]

Inherited by implicit conversion Ensuring from BabelExporter to Ensuring[BabelExporter]

Inherited by implicit conversion ArrowAssoc from BabelExporter to ArrowAssoc[BabelExporter]

Ungrouped