feat: add ProgramVariable and ProgramVariableManager for macro variable declarations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-22 23:29:10 -04:00
parent 24cd18da88
commit a323dcc230
3 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
namespace OpenNest.Posts.Cincinnati
{
public sealed class ProgramVariable
{
public int Number { get; }
public string Name { get; }
public string Expression { get; set; }
public ProgramVariable(int number, string name, string expression = null)
{
Number = number;
Name = name;
Expression = expression;
}
public string Reference => $"#{Number}";
}
}