Daily update on 20250318-080056 by Nitload Youmu. Additional Message : Syntax analyzer reshape

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-03-18 08:00:57 +08:00
parent a5aef8506d
commit e3741687a7
16 changed files with 1311 additions and 96 deletions
@@ -98,14 +98,28 @@ namespace StgSharp.Script.Express
//Convert operator until meet a matched separator
while( _cache.TryPopOperator( out Token op ) ) {
if( IsSeparatorMatch( t, op ) ) {
if( _cache.OperatorAheadOfDepth == 0 ) {
_cache.TryPeekOperand(
out _, out Token tOperand,
out ExpNode nOperand );
return;
}
} else {
return;
} else { }
}
}
break;
case TokenFlag.Index_Left: // a [ found
break;
_cache.PushOperand( t );
return;
case TokenFlag.Index_Right: // a ] found
while( _cache.TryPopOperator( out Token op ) ) {
if( op.Value == ExpKeyWord.IndexOf ) { } else { }
}
break;
default:
break;