class MMTInterpolator extends AnyRef
provides convenience methods to be used in an interactive Scala interpreter session
usage: val ip = new MMTInterpolator(controller); import i.MMTContext
- Source
- Interpolator.scala
- Alphabetic
- By Inheritance
- MMTInterpolator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MMTInterpolator(controller: Controller)
Type Members
-
implicit
class
MMTContext extends AnyRef
defines string interpolation methods
defines string interpolation methods
use them as m"x" where m is the method name and x a string representing an Obj notations are used according to the current theory, integers and floats are turned into MMT objects
example: val x = OMI(1); uom"1+$x" yields OMI(2) (if appropriate notation and simplification rule for + are registered)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- implicit def floatt2OM(f: Double): OMLIT
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- implicit def int2OM(i: Int): OMLIT
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parse(ss: Iterable[String], ts: Iterable[Term], top: Option[ParsingRule], check: Boolean): Term
-
def
shell(command: String): Unit
a shortcut for running MMT shell commands while in the Scala interpreter
-
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( ... ) @native()