class ETtPrettyPrinter extends BabelExporter
- Alphabetic
- By Inheritance
- ETtPrettyPrinter
- BabelExporter
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ETtPrettyPrinter(sig: BabelSignature)
Type Members
- sealed trait IdentShowMode extends AnyRef
- Definition Classes
- BabelExporter
- case class Parenable(prec: Int, doc: Doc) extends Product with Serializable
- Definition Classes
- BabelExporter
Value Members
- case object Bare extends IdentShowMode with Product with Serializable
- Definition Classes
- BabelExporter
- case object Safe extends IdentShowMode with Product with Serializable
- Definition Classes
- BabelExporter
- case object WithParams extends IdentShowMode with Product with Serializable
- Definition Classes
- BabelExporter
- case object WithType extends IdentShowMode with Product with Serializable
- Definition Classes
- BabelExporter
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ETtPrettyPrinter toany2stringadd[ETtPrettyPrinter] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ETtPrettyPrinter, B)
- Implicit
- This member is added by an implicit conversion from ETtPrettyPrinter toArrowAssoc[ETtPrettyPrinter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addPol(doc: Doc, pol: Polarity): Doc
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val asciiUnquotName: Regex
- Definition Classes
- BabelExporter
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val defaultIndent: Int
- Definition Classes
- BabelExporter
- def ensuring(cond: (ETtPrettyPrinter) => Boolean, msg: => Any): ETtPrettyPrinter
- Implicit
- This member is added by an implicit conversion from ETtPrettyPrinter toEnsuring[ETtPrettyPrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ETtPrettyPrinter) => Boolean): ETtPrettyPrinter
- Implicit
- This member is added by an implicit conversion from ETtPrettyPrinter toEnsuring[ETtPrettyPrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ETtPrettyPrinter
- Implicit
- This member is added by an implicit conversion from ETtPrettyPrinter toEnsuring[ETtPrettyPrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ETtPrettyPrinter
- Implicit
- This member is added by an implicit conversion from ETtPrettyPrinter toEnsuring[ETtPrettyPrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def export(et: ETt): Doc
- def export(ty: Ty): String
- Definition Classes
- BabelExporter
- def export(sequent: HOLSequent): String
- Definition Classes
- BabelExporter
- def export(expr: Expr): String
- Definition Classes
- BabelExporter
- def exportRaw(expr: Expr): String
- Definition Classes
- BabelExporter
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getIdentShowMode(expr: VarOrConst, knownType: Boolean, bound: Map[String, Var], t0: Map[String, VarOrConst]): (IdentShowMode, Map[String, VarOrConst])
- Definition Classes
- BabelExporter
- def group(doc: Doc): Doc
- Attributes
- protected
- Definition Classes
- BabelExporter
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lineWidth: Int
- Definition Classes
- BabelExporter
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nest(doc: Doc, j: Int = defaultIndent): Doc
- Definition Classes
- BabelExporter
- def notationForConst(const: ConstName): Option[Notation]
- Definition Classes
- BabelExporter
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def paramsNecessary(sigC: Const): Boolean
- Definition Classes
- BabelExporter
- def parens(doc: Doc): Doc
- Attributes
- protected
- Definition Classes
- BabelExporter
- val safeChars: Regex
- Definition Classes
- BabelExporter
- def safeMatching(c1: Const, c2: Const): Option[Substitution]
- Definition Classes
- BabelExporter
- def safeMatching(c1: Const, c2: Expr): Option[Substitution]
- Definition Classes
- BabelExporter
- def sepByComma(args: List[Doc]): Doc
- Definition Classes
- BabelExporter
- def show(et: ETt, t0: Map[String, VarOrConst]): (Parenable, Map[String, VarOrConst])
- def show(ty: Ty, needParens: Boolean): Doc
- Definition Classes
- BabelExporter
- def show(ident: VarOrConst, mode: IdentShowMode): Parenable
- Definition Classes
- BabelExporter
- def show(expr: Expr, knownType: Boolean, bound: Map[String, Var], 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:
- Whether the parser will already know the type of this expression (by inference)
- What type the free identifiers have.
- 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.
- Definition Classes
- BabelExporter
- def show(sequent: HOLSequent, bound: Map[String, Var], t0: Map[String, VarOrConst]): (Doc, Map[String, VarOrConst])
- Definition Classes
- BabelExporter
- def showApps(expr: Expr, knownType: Boolean, bound: Map[String, Var], t0: Map[String, VarOrConst]): (Parenable, Map[String, VarOrConst])
- Definition Classes
- BabelExporter
- def showFakeBin(expr: Expr, fakeConst: ConstName, a: Expr, b: Expr, knownType: Boolean, bound: Map[String, Var], t0: Map[String, VarOrConst]): (Parenable, Map[String, VarOrConst])
- Definition Classes
- BabelExporter
- def showName(name: String): Doc
- Definition Classes
- BabelExporter
- def showName(token: Token)(implicit dummyImplicit: DummyImplicit): Doc
- Definition Classes
- BabelExporter
- def showNameFollowableByOp(name: String): Doc
- Definition Classes
- BabelExporter
- def showNameWithParams(name: String, params: List[Ty]): Doc
- Definition Classes
- BabelExporter
- def showNonOpName(name: String): Doc
- Definition Classes
- BabelExporter
- def showRaw(expr: Expr): Parenable
- Definition Classes
- BabelExporter
- def showTyParams(params: List[Ty], always: Boolean = false): Doc
- Definition Classes
- BabelExporter
- def shows(exprs: List[Expr], knownType: Boolean, bound: Map[String, Var], t0: Map[String, VarOrConst]): (List[Parenable], Map[String, VarOrConst])
- Definition Classes
- BabelExporter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unicodeSafe(n: Token): Boolean
- Definition Classes
- BabelExporter
- 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
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ETtPrettyPrinter toStringFormat[ETtPrettyPrinter] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ETtPrettyPrinter, B)
- Implicit
- This member is added by an implicit conversion from ETtPrettyPrinter toArrowAssoc[ETtPrettyPrinter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
This is the API documentation for GAPT.
The main package is gapt.