aa
com.cliffc.aa.HM.HM2.Lambda Class Reference
Inheritance diagram for com.cliffc.aa.HM.HM2.Lambda:
[legend]
Collaboration diagram for com.cliffc.aa.HM.HM2.Lambda:
[legend]

Public Member Functions

String toString ()
 

Package Functions

 Lambda (String arg0, Syntax body)
 
void get_ids ()
 
HMType hm (HashSet< HMVar > nongen)
 

Package Attributes

final String _arg0
 
final Syntax _body
 

Detailed Description

Definition at line 127 of file HM2.java.

Constructor & Destructor Documentation

◆ Lambda()

com.cliffc.aa.HM.HM2.Lambda.Lambda ( String  arg0,
Syntax  body 
)
package

Definition at line 130 of file HM2.java.

130 { _arg0=arg0; _body=body; }

References com.cliffc.aa.HM.HM2.Lambda._arg0, and com.cliffc.aa.HM.HM2.Lambda._body.

Member Function Documentation

◆ get_ids()

void com.cliffc.aa.HM.HM2.Lambda.get_ids ( )
package

Reimplemented from com.cliffc.aa.HM.HM2.Syntax.

Definition at line 139 of file HM2.java.

139 { ENV.put(_arg0, new HMVar()); _body.get_ids(); }

References com.cliffc.aa.HM.HM2.Lambda._arg0, com.cliffc.aa.HM.HM2.Lambda._body, com.cliffc.aa.HM.HM2.ENV, and com.cliffc.aa.HM.HM2.Syntax.get_ids().

Here is the call graph for this function:

◆ hm()

HMType com.cliffc.aa.HM.HM2.Lambda.hm ( HashSet< HMVar nongen)
package

Reimplemented from com.cliffc.aa.HM.HM2.Syntax.

Definition at line 132 of file HM2.java.

132  {
133  HMVar tnew = (HMVar) ENV.get(_arg0);
134  nongen.add(tnew);
135  HMType trez = _body.hm(nongen);
136  nongen.remove(tnew);
137  return Oper.fun(tnew,trez);
138  }

References com.cliffc.aa.HM.HM2.Lambda._arg0, com.cliffc.aa.HM.HM2.Lambda._body, com.cliffc.aa.HM.HM2.ENV, com.cliffc.aa.HM.HM2.Oper.fun(), and com.cliffc.aa.HM.HM2.Syntax.hm().

Here is the call graph for this function:

◆ toString()

String com.cliffc.aa.HM.HM2.Lambda.toString ( )

Definition at line 131 of file HM2.java.

131 { return "{ "+_arg0+" -> "+_body+" }"; }

References com.cliffc.aa.HM.HM2.Lambda._arg0, and com.cliffc.aa.HM.HM2.Lambda._body.

Member Data Documentation

◆ _arg0

final String com.cliffc.aa.HM.HM2.Lambda._arg0
package

◆ _body


The documentation for this class was generated from the following file:
com.cliffc.aa.HM.HM2.ENV
static final HashMap< String, HMType > ENV
Definition: HM2.java:68
com.cliffc.aa.HM.HM2.Lambda._arg0
final String _arg0
Definition: HM2.java:128
com.cliffc.aa.HM.HM2.Syntax.hm
abstract HMType hm(HashSet< HMVar > nongen)
com.cliffc.aa.HM.HM2.Syntax.get_ids
abstract void get_ids()
com.cliffc.aa.HM.HM2.Lambda._body
final Syntax _body
Definition: HM2.java:129