|
kiama 0.9.0 API
|
|
kiama/example/lambda2/Analysis.scala]
object
Analysis
extends AnyRef| Value Summary | |
val
|
env
: scala.PartialFunction[Exp, scala.List[(java.lang.String, Type)]]
The environment of an expression is the list of variable names that
are visible in that expression and their types.
|
val
|
fv
: scala.PartialFunction[Exp, scala.collection.immutable.Set[java.lang.String]]
The variables that are free in the given expression.
|
val
|
tipe
: scala.PartialFunction[Exp, Type]
The type of an expression. Checks constituent names and types. Uses
the env attribute to get the bound variables and their types.
|
val
|
tipe2
: scala.PartialFunction[Exp, Type]
The type of an expression. Checks constituent names and types. Uses
the lookup attribute to get the lambda node that binds a name. For
other cases it behaves like tipe.
|
| Method Summary | |
def
|
lookup
(name : java.lang.String) : scala.PartialFunction[Exp, scala.Option[Lam]]
For a given variable reference, return the lambda node that binds it if
there is one, otherwise return None.
|
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Value Details |
val
env : scala.PartialFunction[Exp, scala.List[(java.lang.String, Type)]]
val
tipe : scala.PartialFunction[Exp, Type]
val
tipe2 : scala.PartialFunction[Exp, Type]
| Method Details |
def
lookup(name : java.lang.String) : scala.PartialFunction[Exp, scala.Option[Lam]]
|
kiama 0.9.0 API
|
|