up
Class GrammarReader

java.lang.Object
  extended by up.GrammarReader

public class GrammarReader
extends java.lang.Object

A utility class that reads a grammar from a file.


Method Summary
static Grammar read(java.lang.String fileName)
          Reads a grammar from the specified file and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public static Grammar read(java.lang.String fileName)
                    throws java.io.IOException
Reads a grammar from the specified file and returns it.

Parameters:
fileName - the name of the file that contains the grammar
Returns:
the grammar contained in the specified file
Throws:
java.io.IOException - if an error occurs duing the reading of the specified file