Packages

trait Parser extends (String) ⇒ Expression

Parser interface for KeYmaera X. Provides a parser to read string inputs as differential dynamic logic. A parser is a function from input strings to differential dynamic logic expressions.

Parser: String => Expression

Parsers are adjoint to printers, i.e., they reparse printed expressions as the original expressions but fail to parse syntactically ill-formed strings:

parser(printer(expr)) == expr
See also

TokenParser

Andre Platzer. A complete uniform substitution calculus for differential dynamic logic. Journal of Automated Reasoning, 59(2), pp. 219-266, 2017.

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

Abstract Value Members

  1. abstract def annotationListener: (Program, Formula) ⇒ Unit

    Returns the annotation listener.

  2. abstract def apply(input: String): Expression

    Parse the input string in the concrete syntax as a differential dynamic logic expression

    Parse the input string in the concrete syntax as a differential dynamic logic expression

    input

    the string to parse as a dL formula, dL term, or dL program.

    Definition Classes
    Parser → Function1
    Exceptions thrown

    ParseException if input is not a well-formed expression of differential dynamic logic or differential game logic.

  3. abstract val differentialProgramParser: (String) ⇒ DifferentialProgram

    Parse the input string in the concrete syntax as a differential dynamic logic differential program.

    Parse the input string in the concrete syntax as a differential dynamic logic differential program.

    Exceptions thrown

    ParseException whenever its input is not a well-formed differential program of differential dynamic logic or differential game of differential game logic.

  4. abstract val formulaParser: (String) ⇒ Formula

    Parse the input string in the concrete syntax as a differential dynamic logic formula.

    Parse the input string in the concrete syntax as a differential dynamic logic formula.

    Exceptions thrown

    ParseException whenever its input is not a well-formed formula of differential dynamic logic or differential game logic.

  5. abstract val printer: PrettyPrinter

    A pretty-printer that can write the output that this parser reads

  6. abstract val programParser: (String) ⇒ Program

    Parse the input string in the concrete syntax as a differential dynamic logic program.

    Parse the input string in the concrete syntax as a differential dynamic logic program.

    Exceptions thrown

    ParseException whenever its input is not a well-formed program of differential dynamic logic or game of differential game logic.

  7. abstract val sequentParser: (String) ⇒ Sequent

    Parse the input string in the concrete syntax as a differential dynamic logic sequent.

    Parse the input string in the concrete syntax as a differential dynamic logic sequent.

    Exceptions thrown

    ParseException whenever its input is not a well-formed sequent of differential dynamic logic or differential game logic.

  8. abstract val termParser: (String) ⇒ Term

    Parse the input string in the concrete syntax as a differential dynamic logic term.

    Parse the input string in the concrete syntax as a differential dynamic logic term.

    Exceptions thrown

    ParseException whenever its input is not a well-formed term of differential dynamic logic or differential game logic.

Concrete 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: (Expression) ⇒ A): (String) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def compose[A](g: (A) ⇒ String): (A) ⇒ Expression
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def setAnnotationListener(listener: (Program, Formula) ⇒ Unit): Unit

    Sets a listener to be informed when parsing annotations.

  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from (String) ⇒ Expression

Inherited from AnyRef

Inherited from Any

Ungrouped