Raptor.ProgramParser
Class TestHarness

java.lang.Object
  extended by Raptor.ProgramParser.TestHarness

public class TestHarness
extends java.lang.Object

Used for local testing of the parser.
Reads in an input program file and passes it line by line to ProgramParseController.


Constructor Summary
TestHarness()
           
 
Method Summary
static void main(java.lang.String[] args)
          Takes as argument a text file containing program lines to be parsed.
static void parseCode(java.lang.String input)
          Parses the input by sending each line of the input String to a ProgramParseController for it to send to the parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestHarness

public TestHarness()
Method Detail

main

public static void main(java.lang.String[] args)
Takes as argument a text file containing program lines to be parsed.


parseCode

public static void parseCode(java.lang.String input)
Parses the input by sending each line of the input String to a ProgramParseController for it to send to the parser.

Parameters:
input - The .txt file which is the argument when TestHarness is called.