object Term extends OperationCollection
- Source
- Term.scala
- Alphabetic
- By Inheritance
- Term
- OperationCollection
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
Ops(implicit isabelle: Isabelle, ec: ExecutionContext): Ops
Returns an instance of type Ops.
Returns an instance of type Ops. It is guaranteed that for each instance
isabelle, exactly one instance ofObsis created (using theecfrom the first such invocation). (If you see this doc string in a class different from OperationCollection but no definition of the class Ops, treat this function as if it was private.)- Definition Classes
- OperationCollection
-
def
apply(context: Context, string: String, typ: Typ, symbols: Symbols)(implicit isabelle: Isabelle, ec: ExecutionContext): MLValueTerm
Same as apply(Context,String,Typ) but allows to specify the Symbols translation table.
Same as apply(Context,String,Typ) but allows to specify the Symbols translation table.
- context
The context relative to which parsing takes place (contains syntax declarations etc.)
- string
The string to be parsed
- typ
The type constraint. I.e., the returned term will have type
typ- symbols
Instance of Symbols to convert
stringto Isabelle's internal encoding
-
def
apply(context: Context, string: String, typ: Typ)(implicit isabelle: Isabelle, ec: ExecutionContext): MLValueTerm
Creates a term from a string (using the parser from Isabelle), subject to a type constraint.
Creates a term from a string (using the parser from Isabelle), subject to a type constraint. E.g.,
Term(context, "1+2", Type("Nat.nat"))will infer that 1 and 2 are natural numbers.- context
The context relative to which parsing takes place (contains syntax declarations etc.)
- string
The string to be parsed
- typ
The type constraint. I.e., the returned term will have type
typ
-
def
apply(context: Context, string: String, symbols: Symbols = Symbols.globalInstance)(implicit isabelle: Isabelle, ec: ExecutionContext): MLValueTerm
Creates a term from a string (using the parser from Isabelle).
Creates a term from a string (using the parser from Isabelle). E.g.,
Term(context, "1+2").- context
The context relative to which parsing takes place (contains syntax declarations etc.)
- string
The string to be parsed
- symbols
Instance of Symbols to convert
stringto Isabelle's internal encoding
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
init()(implicit isabelle: Isabelle, executionContext: ExecutionContext): Unit
Makes sure an Ops instance for the instance
isabelleis initialized.Makes sure an Ops instance for the instance
isabelleis initialized. This is useful when code needs to be sure that the global initialization inside the Ops class has happened (e.g., declarations of ML types via Isabelle.executeMLCodeNow) even if it does not access any of the fields in the Ops class.Can safely be called several times with the same
isabelleand/orexecutionContext.- Definition Classes
- OperationCollection
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newOps(implicit isabelle: Isabelle, ec: ExecutionContext): Ops
Should construct an instance of type Ops
Should construct an instance of type Ops
- Attributes
- protected
- Definition Classes
- Term → OperationCollection
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
TermConverter extends Converter[Term]
Representation of terms in ML.
Representation of terms in ML.
- ML type:
term - Representation of term
tas an exception:E_Term t
(
E_Termis automatically declared when needed by the ML code in this package. If you need to ensure that it is defined for compiling own ML code, invoke Term.init.)Available as an implicit value by importing de.unruh.isabelle.pure.Implicits
._ - ML type: