[all packages] [package ] [class hierarchy] [index]

public class PremonVarPrimitive

(source file: PremonVarPrimitive.java)
java.lang.Object
   |
   +----Printable
           |
           +----PremonVar
                   |
                   +----PremonVarPrimitive

The pure class interface.
public class PremonVarPrimitive
  extends PremonVar
This class represents the syntactic class of primitive functions. There is a bit of a hack here, where primitive functions are drawn curried, to improve their appearance. The curryings parameter says how many times the function should be curried before being drawn (for example for val +(int,int):int it's one, but for proc if(bool)(proc():int)(proc():int):int it's three).


Constuctor Index

O PremonVarPrimitive(String, PremonType)
Create a new primitive function with no currying.
O PremonVarPrimitive(String, PremonType, int)
Create a new primitive function.

Methods

O print(Printer)
O semantics()

Constructors

O PremonVarPrimitive
public PremonVarPrimitive(String name,
                          PremonType type,
                          int curryings);
Create a new primitive function.

Parameters:
name - the name of the function
type - the type of the function
curryings - how many times to curry the function before drawing it.

O PremonVarPrimitive

public PremonVarPrimitive(String name,
                          PremonType type);
Create a new primitive function with no currying.

Parameters:
name - the name of the function
type - the type of the function

Methods

O print
public void print(Printer p);

O semantics

public Mor semantics();


[all packages] [package ] [class hierarchy] [index]
PremonVarPrimitive.html