All Packages Class Hierarchy This Package Previous Next Index
Class Jaja.SpecialOperator
java.lang.Object
|
+----Jaja.Jaja
|
+----Jaja.Value
|
+----Jaja.Symbol
|
+----Jaja.SpecialOperator
- public abstract class SpecialOperator
- extends Symbol
This is the class of special operator names. These are symbols
with a perform method that define how they handle such a special
form. This schema is extendible, you just have to create a
subclass with a perform method and to register this symbol in the
oblist of symbols.
-
SpecialOperator(String)
-
-
eval(Environment, WorldAble)
- Special operators must support a
perform
method.
-
perform(Value, Environment, WorldAble)
-
SpecialOperator
protected SpecialOperator(String n)
eval
public Value eval(Environment r,
WorldAble world)
- Special operators must support a
perform
method.
The >eval
method is also refined to provoke an error
since a special operator cannot be a legal variable.
- Overrides:
- eval in class Symbol
perform
public abstract Value perform(Value parameters,
Environment r,
WorldAble world)
All Packages Class Hierarchy This Package Previous Next Index