Daily update on 20250430-073804 by Nitload Youmu. Additional Message : full function of syntax analyze to STEP file

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-04-30 07:38:04 +08:00
parent a6411e2f25
commit 74c01effe4
52 changed files with 693 additions and 442 deletions
+9 -3
View File
@@ -89,6 +89,8 @@ namespace StgSharp.Script
get => _statementCache.Peek();
}
public Stack<CompileDepthMark> DepthStack => _depthStack;
public void DecreaseDepth()
{
CompileDepthMark mark = _depthStack.Pop();
@@ -110,9 +112,13 @@ namespace StgSharp.Script
if( StatementsInDepth.Count == 0 ) {
return TNode.Empty;
}
TNode first = StatementsInDepth.Peek();
while( StatementsInDepth.Count > 0 ) {
first.PrependNode( StatementsInDepth.Pop() );
TNode end = StatementsInDepth.Peek();
TNode first = end;
while( StatementsInDepth.Count > 0 )
{
first = StatementsInDepth.Pop();
end.PrependNode( first );
end = first;
}
return first;
}