diff --git a/Program.cs b/Program.cs index c71dbcb..40d0d56 100644 --- a/Program.cs +++ b/Program.cs @@ -39,6 +39,10 @@ public class Program Console.WriteLine($"{token.region}: {token.type} {{{token.data}}}"); } } + if(tokens.Length == 0) + { + return; + } if(Path.GetFileName(file).StartsWith("tokenizer")) { Console.WriteLine($"Skipping parsing of `{file}`");