|
@@ -0,0 +1,19 @@
|
|
|
|
|
+using System.Text.RegularExpressions;
|
|
|
|
|
+
|
|
|
|
|
+namespace DayTemplate;
|
|
|
|
|
+
|
|
|
|
|
+public partial class Parser
|
|
|
|
|
+{
|
|
|
|
|
+ [GeneratedRegex(@".*")]
|
|
|
|
|
+ private partial Regex LineMatch();
|
|
|
|
|
+
|
|
|
|
|
+ public void Parse(string inputFile)
|
|
|
|
|
+ {
|
|
|
|
|
+ using var reader = File.OpenText(inputFile);
|
|
|
|
|
+
|
|
|
|
|
+ while (!reader.EndOfStream)
|
|
|
|
|
+ {
|
|
|
|
|
+ var line = reader.ReadLine()!;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|