Modifier and Type | Field and Description |
---|---|
RECORD |
formals |
java.lang.String |
name |
Type |
result |
Type |
self |
Constructor and Description |
---|
FUNCTION(java.lang.String name,
Type self,
RECORD formals,
Type result) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Visitor pattern dispatch.
|
FIELD |
addFormal(Type type,
java.lang.String name) |
boolean |
coerceTo(Type t) |
java.lang.String |
toString() |