From 5eb2b82c9b2290e5a02b8375f95c34a3d302d1bb Mon Sep 17 00:00:00 2001 From: Creeper Lv Date: Tue, 26 May 2026 16:33:14 +1000 Subject: [PATCH] Updated slex_template.c for C# implementation. --- Source/Languages/CSharp/slex_template.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Languages/CSharp/slex_template.c b/Source/Languages/CSharp/slex_template.c index d2a35a3..949e668 100644 --- a/Source/Languages/CSharp/slex_template.c +++ b/Source/Languages/CSharp/slex_template.c @@ -92,14 +92,14 @@ bool slex_translate_to_file_csharp(slex_options *options, slex_rules *rules, FIL // Segment class fprintf(output_file, " public class %s\n {\n", data_type); - fprintf(output_file, " public string Content { get; set; } = string.Empty;\n"); - fprintf(output_file, " public string FileName { get; set; } = string.Empty;\n"); - fprintf(output_file, " public %s? Prev { get; set; }\n", data_type); - fprintf(output_file, " public %s? Next { get; set; }\n", data_type); - fprintf(output_file, " public long Line { get; set; }\n"); - fprintf(output_file, " public long Column { get; set; }\n"); - fprintf(output_file, " public %sTag Tag { get; set; }\n", data_type); - fprintf(output_file, " public %sId Id { get; set; }\n", data_type); + fprintf(output_file, " public string Content = string.Empty;\n"); + fprintf(output_file, " public string FileName = string.Empty;\n"); + fprintf(output_file, " public %s? Prev;\n", data_type); + fprintf(output_file, " public %s? Next;\n", data_type); + fprintf(output_file, " public long Line;\n"); + fprintf(output_file, " public long Column;\n"); + fprintf(output_file, " public %sTag Tag;\n", data_type); + fprintf(output_file, " public %sId Id;\n", data_type); fprintf(output_file, " }\n\n"); // SLexer class