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:
parent
2f3d8fdce9
commit
156c3bd866
@ -234,6 +234,11 @@ namespace Twiglet.CS2J.Translator
|
|||||||
lex.TraceDestination = Console.Error;
|
lex.TraceDestination = Console.Error;
|
||||||
|
|
||||||
CommonTokenStream tokens = new CommonTokenStream(lex);
|
CommonTokenStream tokens = new CommonTokenStream(lex);
|
||||||
|
// if (tokens.LT(1).Type == TokenTypes.EndOfFile)
|
||||||
|
// {
|
||||||
|
// Console.WriteLine("File is empty");
|
||||||
|
// return null;
|
||||||
|
// }
|
||||||
csParser p = new csParser(tokens);
|
csParser p = new csParser(tokens);
|
||||||
p.TraceDestination = Console.Error;
|
p.TraceDestination = Console.Error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user