1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

(failed) attempt to detect empty file

This commit is contained in:
Kevin Glynn 2011-03-11 11:08:08 +01:00
parent 2f3d8fdce9
commit 156c3bd866

View File

@ -234,6 +234,11 @@ namespace Twiglet.CS2J.Translator
lex.TraceDestination = Console.Error;
CommonTokenStream tokens = new CommonTokenStream(lex);
// if (tokens.LT(1).Type == TokenTypes.EndOfFile)
// {
// Console.WriteLine("File is empty");
// return null;
// }
csParser p = new csParser(tokens);
p.TraceDestination = Console.Error;