Codice: Seleziona tutto
PARSER_BEGIN(Prova)
package parser;
import java.io.*;
public class Prova
{
public static void main(String args []) throws ParseException
{
Token t;
FileInputStream in;
ProvaTokenManager tm;
try {
in = new FileInputStream(args[0]);
System.out.println("QUI");
tm = new ProvaTokenManager(new SimpleCharStream(in));
t = tm.getNextToken();
while(t.kind != ProvaConstants.EOF)
{
t = tm.getNextToken();
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}
PARSER_END(Prova)
Codice: Seleziona tutto
java.io.FileNotFoundException: $TBOO (Impossibile trovare il file specificato)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at parser.Prova.main(Prova.java:17)