Packages

o

edu.cmu.cs.ls.keymaerax.parser

FullPrettyPrinter

object FullPrettyPrinter extends BasePrettyPrinter

Fully-parenthesized pretty printer in full form with full parentheses.

Example:
  1. Fully parenthesized strings are obtained using the edu.cmu.cs.ls.keymaerax.parser.FullPrettyPrinter printer:

    val pp = FullPrettyPrinter
    // "x < -(y)"
    val fml0 = Less(Variable("x"),Neg(Variable("y")))
    val fml0str = pp(fml0)
    // "true -> ([x:=1;](x>=0))"
    val fml1 = Imply(True, Box(Assign(Variable("x"), Number(1)), GreaterEqual(Variable("x"), Number(0))))
    val fml1str = pp(fml1)
See also

edu.cmu.cs.ls.keymaerax.parser.KeYmaeraXPrinter.fullPrinter

Linear Supertypes
BasePrettyPrinter, PrettyPrinter, (Expression) ⇒ String, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FullPrettyPrinter
  2. BasePrettyPrinter
  3. PrettyPrinter
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. val fullPrinter: (Expression) ⇒ String

    The corresponding full-form pretty printer producing full parentheses.

    The corresponding full-form pretty printer producing full parentheses.

    Definition Classes
    FullPrettyPrinterPrettyPrinter
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. 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
    FullPrettyPrinterPrettyPrinter
  21. 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
  22. def statement(s: String): String

    Formatting the atomic statement s

    Formatting the atomic statement s

    Attributes
    protected
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from BasePrettyPrinter

Inherited from PrettyPrinter

Inherited from (Expression) ⇒ String

Inherited from AnyRef

Inherited from Any

Ungrouped