o

info.kwarc.mmt.lf.compile

TestProgram

object TestProgram extends Program

An example program

Source
Programs.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestProgram
  2. Program
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. object declare

    a helper object for conveniently adding declarations via val declare(names: Seq[ID]) = (d: DECL) This adds d to the list of declarations and binds names to the ID's declared by d.

    a helper object for conveniently adding declarations via val declare(names: Seq[ID]) = (d: DECL) This adds d to the list of declarations and binds names to the ID's declared by d. The length of names must be equal to the list of introduced names. Most declarations introduce exactly one name; ADT and RECORD declarations introduce n+1 names: first the type name, then the list of constructors/fields.

    Attributes
    protected
    Definition Classes
    Program
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def add(d: DECL): Unit

    adds a declaration merges consecutive ADT's and FUNCTION's into ADTRec and FUNCTIONRec

    adds a declaration merges consecutive ADT's and FUNCTION's into ADTRec and FUNCTIONRec

    Attributes
    protected
    Definition Classes
    Program
  6. val add: ID
  7. def addTag(key: String): Unit
    Definition Classes
    Program
  8. val addr: ID
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def check: Unit

    checks this program

    checks this program

    Definition Classes
    Program
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. val denom: ID
  13. val enum: ID
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def get: List[DECL]

    returns the list of declarations in declaration-order consecutive ADT's and FUNCTION's are merged into ADTRec and FUNCTIONRec

    returns the list of declarations in declaration-order consecutive ADT's and FUNCTION's are merged into ADTRec and FUNCTIONRec

    Definition Classes
    Program
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def getLabels(): List[String]
    Definition Classes
    Program
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val listnat: ID
  23. val mult: ID
  24. val nat: ID
  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. def printIn(fl: FuncLang[String]): String
    Definition Classes
    Program
  29. val rat: ID
  30. val succ: ID
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. val zero: ID

Inherited from Program

Inherited from AnyRef

Inherited from Any

Ungrouped