class ExpansionTreePrettyPrinter extends BabelExporter
Ordering
- Alphabetic
- By Inheritance
Inherited
- ExpansionTreePrettyPrinter
- BabelExporter
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ExpansionTreePrettyPrinter(sig: BabelSignature)
Value Members
-
object
prio
- 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 ExpansionTreePrettyPrinter to any2stringadd[ExpansionTreePrettyPrinter] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ExpansionTreePrettyPrinter, B)
- Implicit
- This member is added by an implicit conversion from ExpansionTreePrettyPrinter to ArrowAssoc[ExpansionTreePrettyPrinter] 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
defaultIndent: Int
- Definition Classes
- BabelExporter
-
def
ensuring(cond: (ExpansionTreePrettyPrinter) ⇒ Boolean, msg: ⇒ Any): ExpansionTreePrettyPrinter
- Implicit
- This member is added by an implicit conversion from ExpansionTreePrettyPrinter to Ensuring[ExpansionTreePrettyPrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ExpansionTreePrettyPrinter) ⇒ Boolean): ExpansionTreePrettyPrinter
- Implicit
- This member is added by an implicit conversion from ExpansionTreePrettyPrinter to Ensuring[ExpansionTreePrettyPrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ExpansionTreePrettyPrinter
- Implicit
- This member is added by an implicit conversion from ExpansionTreePrettyPrinter to Ensuring[ExpansionTreePrettyPrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ExpansionTreePrettyPrinter
- Implicit
- This member is added by an implicit conversion from ExpansionTreePrettyPrinter to Ensuring[ExpansionTreePrettyPrinter] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def export(et: ExpansionTree): String
-
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
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ExpansionTreePrettyPrinter to StringFormat[ExpansionTreePrettyPrinter] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
group(doc: Doc): Doc
- Attributes
- protected
- Definition Classes
- BabelExporter
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
val
infixRel: Set[String]
- Definition Classes
- BabelExporter
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
knownConstantTypesFromSig(consts: Iterable[Const]): Iterable[(String, Const)]
- Definition Classes
- BabelExporter
-
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
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
parenIf(enclosingPrio: Int, currentPrio: Int, doc: Doc): Doc
- Definition Classes
- BabelExporter
-
def
parens(doc: Doc): Doc
- Attributes
- protected
- Definition Classes
- BabelExporter
-
val
safeChars: Regex
- Definition Classes
- BabelExporter
- def show(et: ExpansionTree, t0: Map[String, VarOrConst], p: Int): (Doc, Map[String, VarOrConst])
-
def
show(ty: Ty, needParens: Boolean): Doc
- Definition Classes
- BabelExporter
-
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:
- 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 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.
- Definition Classes
- BabelExporter
-
def
show(sequent: HOLSequent, bound: Set[String], t0: Map[String, VarOrConst]): (Doc, Map[String, VarOrConst])
- Definition Classes
- BabelExporter
-
def
showApps(expr: Expr, knownType: Boolean, bound: Set[String], t0: Map[String, VarOrConst], p: Int): (Doc, Map[String, VarOrConst])
- Definition Classes
- BabelExporter
-
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])
- Definition Classes
- BabelExporter
-
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])
- Definition Classes
- BabelExporter
-
def
showName(name: String): Doc
- Definition Classes
- BabelExporter
-
def
showQuant(sym: String, v: Var, e: Expr, bound: Set[String], t0: Map[String, VarOrConst], p: Int): (Doc, Map[String, VarOrConst])
- Definition Classes
- BabelExporter
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (ExpansionTreePrettyPrinter, B)
- Implicit
- This member is added by an implicit conversion from ExpansionTreePrettyPrinter to ArrowAssoc[ExpansionTreePrettyPrinter] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc