Daily update on 20250618-051714 by Nitload Youmu. Additional Message : Brief support to collection operation in EXPRESS. A collection type added in core lib and compilestack.

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-06-18 05:17:14 +08:00
parent 74c01effe4
commit c624a8ca38
300 changed files with 12227 additions and 4303 deletions
@@ -249,7 +249,8 @@ namespace StgSharp.Script.Express
private bool TryParseInstance( Token t )
{
if( _local.TryGetMember( t.Value,
out ExpSyntaxNode? node ) && node is ExpElementInstance instance )
out ExpSyntaxNode? node ) &&
node is ExpElementInstance instance )
{
_cache.PushOperand( ExpInstanceReferenceNode.MakeReferenceFrom( t, instance ) );
return true;
@@ -260,7 +261,8 @@ namespace StgSharp.Script.Express
} else if( _cache.IsLastAddedOperator )
{
if( _cache.PeekOperand( out _,
out ExpSyntaxNode? typenode ) && typenode is ExpMetaRefNode typeRef )
out ExpSyntaxNode? typenode ) &&
typenode is ExpMetaRefNode typeRef )
{
_cache.PopOperand( out _, out _ );
_local.AddMember( t.Value, typeRef.SourceRef.CreateInstanceNode( t ) );