orc.ast.oil
Class Def

java.lang.Object
  extended by orc.ast.oil.Def

public class Def
extends java.lang.Object

A unit of syntax that encapsulates an expression definition. Groups of mutually recursive definitions are scoped in the simplified abstract syntax tree by a Def.

Author:
dkitchin

Field Summary
 int arity
           
 Expr body
           
 
Constructor Summary
Def(int arity, Expr body)
           
 
Method Summary
 void addVars(java.util.Set<java.lang.Integer> indices, int depth)
           
 Def compile()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

arity

public int arity

body

public Expr body
Constructor Detail

Def

public Def(int arity,
           Expr body)
Method Detail

compile

public Def compile()

addVars

public void addVars(java.util.Set<java.lang.Integer> indices,
                    int depth)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object