Daily update on 20250323-151439 by Nitload Youmu. Additional Message : none

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-03-23 15:14:39 +08:00
parent 528d0c5462
commit 148b0fed4a
29 changed files with 313 additions and 178 deletions
+1 -31
View File
@@ -58,37 +58,7 @@ namespace StgSharp
{
try {
StgSharp.Init();
CompileStack<ExpNode, IExpElementSource> stack = new CompileStack<ExpNode, IExpElementSource>(
);
for( int i = 0; i < 10; i++ ) {
stack.PushOperand(
new Token( $"{i}", 0, 0, TokenFlag.Number ) );
}
for( int i = 0; i < 10; i++ ) {
stack.PushOperator(
new Token( $"op_{i}", 0, 0, TokenFlag.Member ) );
}
stack.IncreaseDepth( 0 );
for( int i = 0; i < 10; i++ ) {
stack.PushOperand(
new Token( $"{i}", 0, 0, TokenFlag.Number ) );
}
for( int i = 0; i < 10; i++ ) {
stack.PushOperator(
new Token( $"op_{i}", 0, 0, TokenFlag.Member ) );
}
while( stack.TryPopOperand(
out bool isNode, out Token t, out ExpNode n ) ) {
Console.WriteLine( t.Value );
}
while( stack.TryPopOperator( out Token op ) ) {
Console.WriteLine( op.Value );
}
ExpLinearExpressionTest();
return;
}
catch( Exception ex ) {