Class Utilities

java.lang.Object
  extended byUtilities

public class Utilities
extends java.lang.Object

Utilities defines utility methods for use in the interperter. The supplied version for CSC 330 provides just an error-printing method. You can add additional utility methods if you want.


Constructor Summary
Utilities()
           
 
Method Summary
static void error(TreeNode node, java.lang.String msg)
          Print to stderr the line and column numbers of the given node, followed by the text of the given error message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utilities

public Utilities()
Method Detail

error

public static void error(TreeNode node,
                         java.lang.String msg)
Print to stderr the line and column numbers of the given node, followed by the text of the given error message.