compiler.test
Class FinalTestCase

java.lang.Object
  extended by compiler.test.FinalTestCase

public class FinalTestCase
extends java.lang.Object

Esta clase contiene el método main para probar el analizador semántico. Puede modificarse si el alumno lo cree necesario, pero debe mantenerse el nombre de la clase y su formato de invocación (un parámetro de entrada a main que contenga la ruta de un archivo fuente en modula 12. Antes de ejecutarla hay que haber llamado a la tarea 'build' de ant.


Constructor Summary
FinalTestCase()
          Constructor for FinalTestCase.
 
Method Summary
static void main(java.lang.String[] args)
          Starts the parser test case.
 void testSemantic(java.lang.String fileName)
          Tests the parser agains a test file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinalTestCase

public FinalTestCase()
Constructor for FinalTestCase.

Method Detail

main

public static void main(java.lang.String[] args)
Starts the parser test case.

Parameters:
args - An 1 element array containing the path to the input file.

testSemantic

public void testSemantic(java.lang.String fileName)
Tests the parser agains a test file.

Parameters:
fileName - The path of the file test.