|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectslogo.language.GrammarElement
public abstract class GrammarElement
All elements of the elan language (e.g., that make up an abstract syntax tree) should extend GrammarElement. Evaluating a language construct with a context returns the value of the evaluation and may have side-effects.
Field Summary | |
---|---|
protected static java.util.Map<GrammarElement,java.lang.Object> |
gelementsToValue
|
Constructor Summary | |
---|---|
GrammarElement()
|
Method Summary | |
---|---|
abstract java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.Map<GrammarElement,java.lang.Object> gelementsToValue
Constructor Detail |
---|
public GrammarElement()
Method Detail |
---|
public abstract java.lang.Object evaluate(Context c)
c
- context in which the evaluation takes place
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |