This commit is contained in:
Nitload
2025-08-25 09:50:30 +08:00
parent bd0e31e922
commit 1359ff4ecc
1630 changed files with 738486 additions and 2399 deletions
@@ -40,7 +40,7 @@ using System.Threading.Tasks;
using ExpKeyword = StgSharp.Script.Express.ExpressCompile.Keyword;
namespace StgSharp.Model.Step
namespace StgSharp.Modeling.Step
{
internal partial class StepExpSyntaxAnalyzer
{
@@ -57,19 +57,15 @@ namespace StgSharp.Model.Step
_cache.StatementsInDepth.Push( statement );
} else
{
_cache.StatementsInDepth.Push( ExpSyntaxNode.Empty );
ExpInvalidSyntaxException.ThrowNoOperator( rightSeparator );
}
} else
{
while( _cache.TryPopOperator( out op ) )
{
ExpSyntaxNode node = ConvertAndPushOneOperator( op );
}
if( _cache.OperandAheadOfDepth == 1 )
{
_cache.PopOperand( out _, out root );
_cache.StatementsInDepth.Push( root );
while( _cache.TryPopOperator( out op ) ) {
ConvertAndPushOneOperator( op );
}
_cache.PopOperand( out _, out root );
_cache.StatementsInDepth.Push( root );
}
root = _cache.PackAllStatements();
@@ -77,7 +73,6 @@ namespace StgSharp.Model.Step
if( IsSeparatorMatch( _cache.PeekOperator(), rightSeparator ) )
{
_cache.PopOperator();
root = ExpTupleNode.Pack( root );
_cache.PushOperand( root );
} else
{