mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Add constants and qualified type names to lexer, and use instruction schema to decode UIB instrctions
This commit is contained in:
@@ -14,16 +14,18 @@ public record SectionDirective : Directive
|
||||
|
||||
public record ConstantDirective : Directive
|
||||
{
|
||||
public ConstantDirective(string name, string typeName, string content) : base("constant")
|
||||
public ConstantDirective(string name, QualifiedTypeName typeName, string content) : base("constant")
|
||||
{
|
||||
Name = name;
|
||||
TypeName = typeName;
|
||||
ValueString = content;
|
||||
Content = content;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
public string TypeName { get; }
|
||||
public string ValueString { get; }
|
||||
public QualifiedTypeName TypeName { get; }
|
||||
public string Content { get; }
|
||||
|
||||
public override string ToString() => $"{base.ToString()} {Name} = {TypeName}({Content})";
|
||||
}
|
||||
|
||||
public record ExportDirective : Directive
|
||||
|
||||
Reference in New Issue
Block a user