elan.instruction
Class Instruction

java.lang.Object
  |
  +--elan.GrammarElement
        |
        +--elan.instruction.Instruction
Direct Known Subclasses:
Add, Assignment, Back, Clean, Clearscreen, Fence, Forward, FuncVariable, Hideturtle, Home, If, Jump, Left, Pendown, Penup, Print, Repeat, Right, Setbackground, Setbg, Seth, Setheading, Setpalette, Setpc, Setpencolor, Setpensize, Setps, Setsh, Setshape, Setx, Setxy, Sety, Showturtle, StrictInstructionList, Tell, To, Window, Wrap

public class Instruction
extends GrammarElement


Fields inherited from class elan.GrammarElement
functionMap, ourMap
 
Constructor Summary
Instruction()
           
 
Method Summary
 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
 

Constructor Detail

Instruction

public Instruction()
Method Detail

evaluate

public java.lang.Object evaluate(Context c)
Description copied from class: GrammarElement
Evaluate this language construct in some context. The evaluation may have side-effects, e.g., moving a turtle.
Overrides:
evaluate in class GrammarElement
Following copied from class: elan.GrammarElement
Parameters:
is - the context in which the evaluation takes place
Returns:
the result of evaluating the construct