Updated slex_template.c for C# implementation.
This commit is contained in:
@@ -92,14 +92,14 @@ bool slex_translate_to_file_csharp(slex_options *options, slex_rules *rules, FIL
|
|||||||
|
|
||||||
// Segment class
|
// Segment class
|
||||||
fprintf(output_file, " public class %s\n {\n", data_type);
|
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 Content = string.Empty;\n");
|
||||||
fprintf(output_file, " public string FileName { get; set; } = string.Empty;\n");
|
fprintf(output_file, " public string FileName = string.Empty;\n");
|
||||||
fprintf(output_file, " public %s? Prev { get; set; }\n", data_type);
|
fprintf(output_file, " public %s? Prev;\n", data_type);
|
||||||
fprintf(output_file, " public %s? Next { get; set; }\n", data_type);
|
fprintf(output_file, " public %s? Next;\n", data_type);
|
||||||
fprintf(output_file, " public long Line { get; set; }\n");
|
fprintf(output_file, " public long Line;\n");
|
||||||
fprintf(output_file, " public long Column { get; set; }\n");
|
fprintf(output_file, " public long Column;\n");
|
||||||
fprintf(output_file, " public %sTag Tag { get; set; }\n", data_type);
|
fprintf(output_file, " public %sTag Tag;\n", data_type);
|
||||||
fprintf(output_file, " public %sId Id { get; set; }\n", data_type);
|
fprintf(output_file, " public %sId Id;\n", data_type);
|
||||||
fprintf(output_file, " }\n\n");
|
fprintf(output_file, " }\n\n");
|
||||||
|
|
||||||
// SLexer class
|
// SLexer class
|
||||||
|
|||||||
Reference in New Issue
Block a user