compiler.test
Class LexicalTestCase

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

public class LexicalTestCase
extends java.lang.Object

Esta clase contiene el método main para probar el analizador léxico, sin tener terminado el sintáctico. Puede añadirse código si el alumno lo cree necesario, pero no ha de modificarse el proporcionado.


Constructor Summary
LexicalTestCase()
          Constructor for LexicalTestCase.
 
Method Summary
static void main(java.lang.String[] args)
          Starts the scanner test case.
 void testScan(java.lang.String fileName)
          Tests the scanner.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexicalTestCase

public LexicalTestCase()
Constructor for LexicalTestCase.

Method Detail

main

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

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

testScan

public void testScan(java.lang.String fileName)
Tests the scanner.

Parameters:
test - The test file.