Add translator source generator
This commit is contained in:
15
PoyoLang.Translator.SourceGenerator/Node.cs
Normal file
15
PoyoLang.Translator.SourceGenerator/Node.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace PoyoLang.Translator.SourceGenerator;
|
||||
|
||||
public class Node
|
||||
{
|
||||
public char Letter { get; }
|
||||
public string Target { get; }
|
||||
|
||||
public List<Node> Nodes { get; } = [];
|
||||
|
||||
public Node(char letter, string target)
|
||||
{
|
||||
Letter = letter;
|
||||
Target = target;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user