Daily update on 20250315-092429 by Nitload Youmu. Additional Message : Arraging node generator struct, compile stat added.

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-03-15 09:24:30 +08:00
parent 9307d7d658
commit 753cc167bc
6 changed files with 394 additions and 125 deletions
+16 -4
View File
@@ -53,6 +53,11 @@ namespace StgSharp.Script
private Stack<bool> _isNode = new Stack<bool>();
public CompileDepthMark CurrentDepthMark
{
get => _depthStack.Peek();
}
public int Depth => _depthStack.Count;
public int OperandCount => _isNode.Count;
@@ -74,13 +79,14 @@ namespace StgSharp.Script
CompileDepthMark mark = _depthStack.Pop();
}
public CompileDepthMark IncreaseDepth()
public CompileDepthMark IncreaseDepth( int usage )
{
CompileDepthMark mark =
new CompileDepthMark
{
OperandBegin = OperandCount,
OperatorBegin = OperatorCount
OperatorBegin = OperatorCount,
State = usage
};
_depthStack.Push( mark );
return mark;
@@ -208,13 +214,19 @@ namespace StgSharp.Script
public int OperandBegin
{
get;
set;
internal set;
}
public int OperatorBegin
{
get;
set;
internal set;
}
public int State
{
get;
internal set;
}
}