...
This commit is contained in:
23
src/compiler/NubLang/Syntax/Templating/TemplateGenerator.cs
Normal file
23
src/compiler/NubLang/Syntax/Templating/TemplateGenerator.cs
Normal file
@@ -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<DefinitionSyntax> _definitions = [];
|
||||||
|
|
||||||
|
public TemplateGenerator(SyntaxTree syntaxTree, TemplateTable templateTable)
|
||||||
|
{
|
||||||
|
_syntaxTree = syntaxTree;
|
||||||
|
_templateTable = templateTable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public IReadOnlyList<DefinitionSyntax> Generate()
|
||||||
|
{
|
||||||
|
_definitions.Clear();
|
||||||
|
return _definitions;
|
||||||
|
}
|
||||||
|
}
|
||||||
6
src/compiler/NubLang/Syntax/Templating/TemplateTable.cs
Normal file
6
src/compiler/NubLang/Syntax/Templating/TemplateTable.cs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
namespace NubLang.Syntax.Templating;
|
||||||
|
|
||||||
|
public class TemplateTable
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user