Packages

c

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
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.

Type Members

  1. sealed trait IdentShowMode extends AnyRef
  2. case class Parenable(prec: Int, doc: Doc) extends Product with Serializable

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
    @native() @HotSpotIntrinsicCandidate() @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 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()
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def getIdentShowMode(expr: VarOrConst, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst]): (IdentShowMode, Map[String, VarOrConst])
  22. def group(doc: Doc): Doc
    Attributes
    protected
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val lineWidth: Int
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def nest(doc: Doc, j: Int = defaultIndent): Doc
  28. def notationForConst(const: ConstName): Option[Notation]
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. def paramsNecessary(sigC: Const): Boolean
  32. def parens(doc: Doc): Doc
    Attributes
    protected
  33. val safeChars: Regex
  34. def safeMatching(c1: Const, c2: Const): Option[Substitution]
  35. def safeMatching(c1: Const, c2: Expr): Option[Substitution]
  36. def sepByComma(args: List[Doc]): Doc
  37. def show(ty: Ty, needParens: Boolean): Doc
  38. def show(ident: VarOrConst, mode: IdentShowMode): Parenable
  39. def show(expr: Expr, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst]): (Parenable, 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 known free identifiers, together with the variable or constant they represent.

    returns

    Pretty-printed document and the free identifiers.

  40. def show(sequent: HOLSequent, bound: Set[String], t0: Map[String, VarOrConst]): (Doc, Map[String, VarOrConst])
  41. def showApps(expr: Expr, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst]): (Parenable, Map[String, VarOrConst])
  42. def showFakeBin(expr: Expr, fakeConst: ConstName, a: Expr, b: Expr, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst]): (Parenable, Map[String, VarOrConst])
  43. def showName(name: String): Doc
  44. def showName(token: Token)(implicit dummyImplicit: DummyImplicit): Doc
  45. def showNameFollowableByOp(name: String): Doc
  46. def showNameWithParams(name: String, params: List[Ty]): Doc
  47. def showNonOpName(name: String): Doc
  48. def showTyParams(params: List[Ty], always: Boolean = false): Doc
  49. def shows(exprs: List[Expr], knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst]): (List[Parenable], Map[String, VarOrConst])
  50. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  51. def toString(): String
    Definition Classes
    AnyRef → Any
  52. def unicodeSafe(n: Token): Boolean
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. 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
  57. object Bare extends IdentShowMode with Product with Serializable
  58. object Safe extends IdentShowMode with Product with Serializable
  59. object WithParams extends IdentShowMode with Product with Serializable
  60. object WithType extends IdentShowMode with Product with Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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