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:
@@ -29,6 +29,7 @@
|
||||
//-----------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
using StgSharp.Model.Step;
|
||||
using StgSharp.PipeLine;
|
||||
using StgSharp.Script.Express;
|
||||
|
||||
using System;
|
||||
@@ -50,9 +51,23 @@ namespace StgSharp
|
||||
private static void TestStepRead()
|
||||
{
|
||||
ExpressCompile.InitCompile();
|
||||
if( StepReader.FromFile( stepFile[ 0 ], out StepReader reader ) )
|
||||
if( StepReader.FromFile( stepFile[ 1 ], out StepReader reader ) )
|
||||
{
|
||||
StepModel model = reader.ReadToModelSingleThread();
|
||||
PipeLineRunner.SetMaxTaskCount( 1 );
|
||||
string[] info = model.ShowStructure( int.MaxValue );
|
||||
FileStream fs = File.Open( "D:\\struct.txt", FileMode.Create,
|
||||
FileAccess.ReadWrite );
|
||||
StreamWriter sw = new StreamWriter( fs );
|
||||
foreach( string line in info )
|
||||
{
|
||||
sw.WriteLine( line );
|
||||
Console.WriteLine( line );
|
||||
}
|
||||
sw.Dispose();
|
||||
fs.Dispose();
|
||||
|
||||
//model.InitEntity();
|
||||
reader.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user