compiler.test
Class SyntaxTestCase

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

public class SyntaxTestCase
extends java.lang.Object

Esta clase contiene el método main para probar el analizador sintáctico. 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
SyntaxTestCase()
          Constructor for SyntaxisTestCase.
 
Method Summary
static void main(java.lang.String[] args)
          Starts the parser test case.
 void testParse(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

SyntaxTestCase

public SyntaxTestCase()
Constructor for SyntaxisTestCase.

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.

testParse

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

Parameters:
fileName - The path of the file test.