jcaas.script_nodes
Class WhileLoop

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

public class WhileLoop
extends Statement

This class represents a while_stmt node in the syntax tree of a script.


Field Summary
 
Fields inherited from class jcaas.script_nodes.Statement
NULLSTATEMENT
 
Constructor Summary
WhileLoop(LogicalExpression exp, Statement list)
          Constructor for the rule while_stmt ::= ( logical_exp ) { stmt_list }.
 
Method Summary
 void interpret(Context c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhileLoop

public WhileLoop(LogicalExpression exp,
                 Statement list)
Constructor for the rule while_stmt ::= ( logical_exp ) { stmt_list }.

Parameters:
exp - logical_exp
list - stmt_list
Method Detail

interpret

public void interpret(Context c)