diff --git a/Program.cs b/Program.cs index 9dd987f..c71dbcb 100644 --- a/Program.cs +++ b/Program.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Text.Json; @@ -30,7 +30,8 @@ public class Program } public static void Run(string file, bool debug) { - Token[] tokens = new Tokenizer().Tokenize(File.ReadAllText(file)); + string content = File.ReadAllText(file).ReplaceLineEndings(); + Token[] tokens = new Tokenizer().Tokenize(content); if(debug) { foreach(Token token in tokens)