From 404232185be4544184ea67faf55e3ca493877202 Mon Sep 17 00:00:00 2001 From: nub31 Date: Wed, 9 Jul 2025 20:09:19 +0200 Subject: [PATCH] ... --- .../Syntax/Templating/TemplateGenerator.cs | 23 +++++++++++++++++++ .../Syntax/Templating/TemplateTable.cs | 6 +++++ 2 files changed, 29 insertions(+) create mode 100644 src/compiler/NubLang/Syntax/Templating/TemplateGenerator.cs create mode 100644 src/compiler/NubLang/Syntax/Templating/TemplateTable.cs diff --git a/src/compiler/NubLang/Syntax/Templating/TemplateGenerator.cs b/src/compiler/NubLang/Syntax/Templating/TemplateGenerator.cs new file mode 100644 index 0000000..86d033e --- /dev/null +++ b/src/compiler/NubLang/Syntax/Templating/TemplateGenerator.cs @@ -0,0 +1,23 @@ +using NubLang.Syntax.Parsing.Node; + +namespace NubLang.Syntax.Templating; + +public class TemplateGenerator +{ + private readonly SyntaxTree _syntaxTree; + private readonly TemplateTable _templateTable; + + private List _definitions = []; + + public TemplateGenerator(SyntaxTree syntaxTree, TemplateTable templateTable) + { + _syntaxTree = syntaxTree; + _templateTable = templateTable; + } + + public IReadOnlyList Generate() + { + _definitions.Clear(); + return _definitions; + } +} \ No newline at end of file diff --git a/src/compiler/NubLang/Syntax/Templating/TemplateTable.cs b/src/compiler/NubLang/Syntax/Templating/TemplateTable.cs new file mode 100644 index 0000000..a01b8ca --- /dev/null +++ b/src/compiler/NubLang/Syntax/Templating/TemplateTable.cs @@ -0,0 +1,6 @@ +namespace NubLang.Syntax.Templating; + +public class TemplateTable +{ + +} \ No newline at end of file