Packages

c

edu.cmu.cs.ls.keymaerax.parser

KeYmaeraXPrettierPrinter

class KeYmaeraXPrettierPrinter extends KeYmaeraXPrecedencePrinter

Vertical layout using an implementation based on Wadler's "A Prettier Printer"

See also

http://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KeYmaeraXPrettierPrinter
  2. KeYmaeraXPrecedencePrinter
  3. KeYmaeraXSkipPrinter
  4. KeYmaeraXPrinter
  5. BasePrettyPrinter
  6. PrettyPrinter
  7. Function1
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KeYmaeraXPrettierPrinter(margin: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (String) ⇒ A): (Expression) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(seq: Sequent): String

    Pretty-print sequent to a string

    Pretty-print sequent to a string

    Definition Classes
    BasePrettyPrinterPrettyPrinter
  6. def apply(expr: Expression): String

    Pretty-print term to a string

    Pretty-print term to a string

    Definition Classes
    BasePrettyPrinterPrettyPrinter → Function1
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. def compose[A](g: (A) ⇒ Expression): (A) ⇒ String
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. def docOf(prv: ProvableSig): Doc
  11. def docOf(seq: Sequent): Doc
  12. def docOf(program: Program): Doc
    Attributes
    protected
  13. def docOf(formula: Formula): Doc
    Attributes
    protected
  14. def docOf(term: Term): Doc
    Attributes
    protected
  15. def docOfODE(program: DifferentialProgram): Doc
    Attributes
    protected
  16. def emit(q: PosInExpr, s: String): String

    Emit the string s as a result of the pretty-printer for the expression at position q

    Emit the string s as a result of the pretty-printer for the expression at position q

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrinter
  17. def encloseText(s1: String, doc: Doc, s2: String): Doc

    Encloses document doc between strings s1 and s2, preferably rendered in a single line.

    Encloses document doc between strings s1 and s2, preferably rendered in a single line.

    Attributes
    protected
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. val fullPrinter: (Expression) ⇒ String

    The corresponding full-form pretty printer producing full parentheses.

    The corresponding full-form pretty printer producing full parentheses.

    Definition Classes
    KeYmaeraXPrinterPrettyPrinter
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. lazy val parser: Parser

    A parser that can read the input that this pretty-printer produces

    A parser that can read the input that this pretty-printer produces

    Definition Classes
    KeYmaeraXPrinterPrettyPrinter
  29. def pp(q: PosInExpr, program: Program): String
    Attributes
    protected
    Definition Classes
    KeYmaeraXPrinter
  30. def pp(q: PosInExpr, formula: Formula): String
    Attributes
    protected
    Definition Classes
    KeYmaeraXPrinter
  31. def pp(q: PosInExpr, term: Term): String
    Attributes
    protected
    Definition Classes
    KeYmaeraXPrinter
  32. def ppODE(q: PosInExpr, program: DifferentialProgram): String
    Attributes
    protected
    Definition Classes
    KeYmaeraXPrinter
  33. def ppOp(expr: Expression): String

    Pretty-print the operator of a term

    Pretty-print the operator of a term

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrinter
  34. def pwrapLeft(t: BinaryComposite, leftPrint: String): String

    Wrap leftPrint for t.left in program parentheses if they are not implicit.

    Wrap leftPrint for t.left in program parentheses if they are not implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXSkipPrinterKeYmaeraXPrinter
  35. def pwrapLeftDoc(t: BinaryComposite, doc: Doc): Doc
    Attributes
    protected
  36. def pwrapRight(t: BinaryComposite, rightPrint: String): String

    Wrap rightPrint for t.right in program parentheses if they are not implicit.

    Wrap rightPrint for t.right in program parentheses if they are not implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXSkipPrinterKeYmaeraXPrinter
  37. def pwrapRightDoc(t: BinaryComposite, doc: Doc): Doc
    Attributes
    protected
  38. def reparse(expr: Expression, print: String): Expression

    Reparse the string print as the same kind as expr has

    Reparse the string print as the same kind as expr has

    Attributes
    protected[edu.cmu.cs.ls.keymaerax]
    Definition Classes
    BasePrettyPrinter
  39. def skipParens(t: Modal): Boolean

    Whether parentheses around t.child can be skipped because they are implicit.

    Whether parentheses around t.child can be skipped because they are implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrecedencePrinterKeYmaeraXSkipPrinter
  40. def skipParens(t: Quantified): Boolean

    Whether parentheses around t.child can be skipped because they are implicit.

    Whether parentheses around t.child can be skipped because they are implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrecedencePrinterKeYmaeraXSkipPrinter
  41. def skipParens(t: UnaryComposite): Boolean

    Whether parentheses around t.child can be skipped because they are implicit.

    Whether parentheses around t.child can be skipped because they are implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrecedencePrinterKeYmaeraXSkipPrinter
  42. def skipParensLeft(t: BinaryComposite): Boolean

    Whether parentheses around t.left can be skipped because they are implied.

    Whether parentheses around t.left can be skipped because they are implied.

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrecedencePrinterKeYmaeraXSkipPrinter
    Note

    Based on (seemingly redundant) inequality comparisons since equality incompatible with comparison ==

  43. def skipParensRight(t: BinaryComposite): Boolean

    Whether parentheses around t.right can be skipped because they are implied.

    Whether parentheses around t.right can be skipped because they are implied.

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrecedencePrinterKeYmaeraXSkipPrinter
    Note

    Based on (seemingly redundant) inequality comparisons since equality incompatible with comparison ==

  44. def statement(s: String): String

    Formatting the atomic statement s

    Formatting the atomic statement s

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrinter
  45. def statementDoc(s: Doc): Doc

    Statement with closing ;

    Statement with closing ;

    Attributes
    protected
  46. def stringify(prv: ProvableSig): String
  47. def stringify(seq: Sequent): String

    Pretty-print sequent to a string but without contract checking!

    Pretty-print sequent to a string but without contract checking!

    Definition Classes
    KeYmaeraXPrettierPrinterBasePrettyPrinter
  48. def stringify(expr: Expression): String

    Pretty-print term to a string but without contract checking!

    Pretty-print term to a string but without contract checking!

    Definition Classes
    KeYmaeraXPrettierPrinterKeYmaeraXPrinterBasePrettyPrinter
  49. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  50. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  54. def wrap(text: String, expr: Expression): String

    Pretty-print enclosing parentheses, braces, brackets etc.

    Pretty-print enclosing parentheses, braces, brackets etc.

    Attributes
    protected
    Definition Classes
    KeYmaeraXPrinter
  55. def wrapChild(t: Modal, childPrint: String): String

    Wrap childPrint for t.child in parentheses if they are not implicit.

    Wrap childPrint for t.child in parentheses if they are not implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXSkipPrinterKeYmaeraXPrinter
  56. def wrapChild(t: Quantified, childPrint: String): String

    Wrap childPrint for t.child in parentheses if they are not implicit.

    Wrap childPrint for t.child in parentheses if they are not implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXSkipPrinterKeYmaeraXPrinter
  57. def wrapChild(t: UnaryComposite, childPrint: String): String

    Wrap childPrint for t.child in parentheses if they are not implicit.

    Wrap childPrint for t.child in parentheses if they are not implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXSkipPrinterKeYmaeraXPrinter
  58. def wrapChildDoc(t: Modal, doc: Doc): Doc
    Attributes
    protected
  59. def wrapChildDoc(t: Quantified, doc: Doc): Doc
    Attributes
    protected
  60. def wrapChildDoc(t: UnaryComposite, doc: Doc): Doc
    Attributes
    protected
  61. def wrapDoc(doc: Doc, expr: Expression): Doc
    Attributes
    protected
  62. def wrapLeft(t: BinaryComposite, leftPrint: String): String

    Wrap leftPrint for t.left in parentheses if they are not implicit.

    Wrap leftPrint for t.left in parentheses if they are not implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXSkipPrinterKeYmaeraXPrinter
  63. def wrapLeftDoc(t: BinaryComposite, doc: Doc): Doc
    Attributes
    protected
  64. def wrapRight(t: BinaryComposite, rightPrint: String): String

    Wrap rightPrint for t.right in parentheses if they are not implicit.

    Wrap rightPrint for t.right in parentheses if they are not implicit.

    Attributes
    protected
    Definition Classes
    KeYmaeraXSkipPrinterKeYmaeraXPrinter
  65. def wrapRightDoc(t: BinaryComposite, doc: Doc): Doc
    Attributes
    protected

Inherited from KeYmaeraXSkipPrinter

Inherited from KeYmaeraXPrinter

Inherited from BasePrettyPrinter

Inherited from PrettyPrinter

Inherited from (Expression) ⇒ String

Inherited from AnyRef

Inherited from Any

Ungrouped