edu.cornell.cs.cs4120.testing
Interface ParserFactory

All Known Implementing Classes:
DefaultParserFactory

public interface ParserFactory

A factory for instantiating parser instances. Implement this for PA2 and indicate your implementation class in your overview document.


Method Summary
 Parser newParser(Reader reader)
          Creates a parser that reads from the given reader.
 

Method Detail

newParser

Parser newParser(Reader reader)
Creates a parser that reads from the given reader. The compilation unit for the given reader is anonymous.

Parameters:
reader - the reader from which tokens will be read
Returns:
an initialized Parser that will parse the tokens from the given reader