Парсер шаблонов готов

This commit is contained in:
2025-03-23 19:32:41 +03:00
parent e93a028bc4
commit b58bddc1a3
19 changed files with 352 additions and 22 deletions
@@ -0,0 +1,20 @@
namespace mROA.CodegenTools
{
public class LinkSectionReader : LeadingTextSectionReader
{
public LinkSectionReader() : base("<!L")
{
}
public override ITemplateSection ExtractSection(ref int index, TemplateDocument document)
{
var from = index;
var to = PassCaretToCloseSymbol();
index = to;
var tagText = GetTagValue(from, to);
return new LinkTemplateSection(tagText, document);
}
}
}