jcaas.script_nodes
Class Assignment

java.lang.Object
  extended by jcaas.script_nodes.AbstractInterpretable
      extended by jcaas.script_nodes.Statement
          extended by jcaas.script_nodes.Assignment
All Implemented Interfaces:
Interpretable

public class Assignment
extends Statement

This class represents an assign_stmt in a syntax tree of a script.


Field Summary
 
Fields inherited from class jcaas.script_nodes.Statement
NULLSTATEMENT
 
Constructor Summary
Assignment(Identifier id, ArithmeticExpression exp)
          Constructor for when assign_stmt ::= IDENTIFIER = arithmetic_exp.
 
Method Summary
 void interpret(Context c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assignment

public Assignment(Identifier id,
                  ArithmeticExpression exp)
Constructor for when assign_stmt ::= IDENTIFIER = arithmetic_exp.

Parameters:
id - the IDENTIFIER of a variable for which to store a value in.
exp - the arithmetic_exp to evaluate and store in the variable.
Method Detail

interpret

public void interpret(Context c)