Daily update on 20250310-064733 by Nitload Youmu. Additional Message : Change: Generic node removed, five non-generic node as replacement
Change: Preprocess to token scheduled, less dependency on type prediction, which put to LINK or C# compiling pase Design: the EXPRESS lang feature "FIXED" keyword not supported, builtin type binary not supported, not used in STEP AP203 and much too complex to make a full marshal implementation in C#. Add: Node generating method to generate literal node Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
@@ -65,27 +65,23 @@ namespace StgSharp.Script.Express
|
||||
/// <summary>
|
||||
/// Compile a parameter expression and add it to head of function parameter node list.
|
||||
/// </summary>
|
||||
private void MergeFunctionCallingParameter()
|
||||
private void MergeFunctionCallingParameter( Token currentSeparator )
|
||||
{
|
||||
if( _cache.OperandAheadOfDepth == 1 ) {
|
||||
if( _cache.PopOperand( out Token t, out ExpNode? n ) ) {
|
||||
n!.PrependNode(
|
||||
ExpNode.NonOperation( PoolString( "FuncParam" ) ) );
|
||||
n!.PrependNode( ExpNode.NonOperation( currentSeparator ) );
|
||||
} else {
|
||||
switch( t.Flag ) {
|
||||
case TokenFlag.Number:
|
||||
if( int.TryParse( t.Value, out int intVal ) ) {
|
||||
n = new ExpLiteralGenericNode<int>(
|
||||
t.Value, intVal );
|
||||
n = new ExpIntNode( t, intVal );
|
||||
} else if( float.TryParse(
|
||||
t.Value, out float floatVal ) ) {
|
||||
n = new ExpLiteralGenericNode<float>(
|
||||
t.Value, floatVal );
|
||||
n = new ExpRealNumberNode( t, floatVal );
|
||||
}
|
||||
break;
|
||||
case TokenFlag.String:
|
||||
n = new ExpLiteralGenericNode<string>(
|
||||
t.Value, t.Value );
|
||||
n = new ExpStringNode( t, t.Value );
|
||||
break;
|
||||
case TokenFlag.Member:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user