Daily update on 20250420-041137 by Nitload Youmu. Additional Message : Change: pipeline nodes use port to connect instead of connctors, this make send to multi-ports and recieve from multi-ports possible.

Remove: Some types in Pipeline namepace removed sueto no need for connectors

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-04-20 04:11:37 +08:00
parent c29993fd84
commit b618fdf7b5
72 changed files with 1343 additions and 602 deletions
@@ -48,9 +48,9 @@ namespace StgSharp.Script.Express
return leftPrecedence - rightPrecedence;
}
public bool TryGenerateUnaryNode( Token t, out ExpNode node )
public bool TryGenerateUnaryNode( Token t, out ExpSyntaxNode node )
{
ExpNode operand = GetNextOperandCache();
ExpSyntaxNode operand = GetNextOperandCache();
switch( t.Value )
{
case ExpKeyword.UnaryPlus:
@@ -63,7 +63,7 @@ namespace StgSharp.Script.Express
node = ExpUnaryOperatorNode.UnaryNot( t, operand );
return true;
default:
node = ExpNode.Empty;
node = ExpSyntaxNode.Empty;
return false;
}
}
@@ -72,12 +72,12 @@ namespace StgSharp.Script.Express
/// WARNING: This method cannot process INDEXOF, FUNCTION CALLING, LOOP and any ENDING
/// SYMBOLS.
/// </summary>
private ExpNode ConvertAndPushOneOperator( Token op )
private ExpSyntaxNode ConvertAndPushOneOperator( Token op )
{
switch( op.Flag )
{
case TokenFlag.Symbol_Unary:
TryGenerateUnaryNode( op, out ExpNode? node );
TryGenerateUnaryNode( op, out ExpSyntaxNode? node );
_cache.PushOperand( node );
return node;
case TokenFlag.Symbol_Binary:
@@ -87,7 +87,7 @@ namespace StgSharp.Script.Express
case TokenFlag.Member:
if( _context.TryGetFunction( op.Value, out ExpFunctionSource? f ) )
{
if( !_cache.PopOperand( out Token t, out ExpNode? p ) )
if( !_cache.PopOperand( out Token t, out ExpSyntaxNode? p ) )
{
node = ExpFunctionCallingNode.CallFunction( op, f, p );
return node;
@@ -99,7 +99,7 @@ namespace StgSharp.Script.Express
}
} else if( _context.TryGetProcedure( op.Value, out ExpProcedureSource? p ) )
{
if( !_cache.PopOperand( out Token t, out ExpNode? param ) )
if( !_cache.PopOperand( out Token t, out ExpSyntaxNode? param ) )
{
node = ExpProcedureCallingNode.CallProcedure( op, p, param );
return node;
@@ -111,7 +111,7 @@ namespace StgSharp.Script.Express
}
} else if( ExpSchema.BuiltinSchema.TryGetFunction( op.Value, out f ) )
{
if( !_cache.PopOperand( out Token t, out ExpNode? param ) )
if( !_cache.PopOperand( out Token t, out ExpSyntaxNode? param ) )
{
node = ExpFunctionCallingNode.CallFunction( op, f, param );
return node;
@@ -132,10 +132,10 @@ namespace StgSharp.Script.Express
}
}
private bool TryGenerateBinaryNode( Token t, out ExpNode node )
private bool TryGenerateBinaryNode( Token t, out ExpSyntaxNode node )
{
ExpNode right = GetNextOperandCache();
ExpNode left = GetNextOperandCache();
ExpSyntaxNode right = GetNextOperandCache();
ExpSyntaxNode left = GetNextOperandCache();
switch( t.Value )
{
case ExpKeyword.Add:
@@ -172,7 +172,7 @@ namespace StgSharp.Script.Express
node = ExpBinaryOperatorNode.CompareInstanceNotEqual( t, left, right );
return true;
default:
node = ExpNode.Empty;
node = ExpSyntaxNode.Empty;
return false;
}
}