object LambdaTree
A simple lambda calculus using abstracted name binding. The basic term syntax is augmented with query commands for the REPL.
- Source
- Lambda.scala
- Alphabetic
- By Inheritance
- LambdaTree
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
App
(e1: Exp, e2: Exp) extends Exp with Product with Serializable
Application of l to r.
-
case class
EquivQuery
(e1: Exp, e2: Exp) extends Query[Boolean] with Product with Serializable
A query that determines the alpha equivalence of two expressions.
-
case class
EvalQuery
(e: Exp) extends Query[Exp] with Product with Serializable
A query that computes the value of an expression.
-
abstract
class
Exp
extends TreeNode
Lambda calculus expressions.
-
case class
FreeNamesQuery
(e: Exp) extends Query[Set[Name]] with Product with Serializable
A query that determines the free names in an expression.
-
case class
FreshQuery
(n: Name, e: Exp) extends Query[Boolean] with Product with Serializable
A query that determines whether a name is not free in an expression.
-
case class
Lam
(b: Bind) extends Exp with Product with Serializable
Lambda expression containing an abstracted binding.
-
case class
Num
(i: Int) extends Exp with Product with Serializable
Numeric expression.
-
abstract
class
Query
[T] extends TreeNode
A query that can be entered from the REPL and returns a value of type T when executed.
A query that can be entered from the REPL and returns a value of type T when executed. These values are not in the term language but are used to represent user commands.
-
case class
SubstQuery
(n: Name, e1: Exp, e2: Exp) extends Query[Exp] with Product with Serializable
A query that substitutes an expression
e1for namenin another expressione2. -
case class
SwapQuery
(tr: Trans, e: Exp) extends Query[Exp] with Product with Serializable
A query that swaps two names in an expression.
-
case class
Var
(x: Name) extends Exp with Product with Serializable
Variable expression.
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )