daily update on 20250214 by nitload youmu, building syntax analysor, tough!

This commit is contained in:
Nitload
2025-02-14 13:30:17 +08:00
parent c23b640cae
commit ccef0de6f6
68 changed files with 2594 additions and 913 deletions
@@ -33,10 +33,13 @@ using StgSharp.Collections;
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Schema;
namespace StgSharp.Script
{
public class AbstractSyntaxTree<TToken> where TToken: IExpressionToken
public class AbstractSyntaxTree<TToken, TType>
where TToken: IExpressionToken<TToken, TType>
where TType: ITypeSource<TType>
{
private bool _cacheAvailable;
@@ -64,11 +67,7 @@ namespace StgSharp.Script
return _allToken.Contains( node );
}
public void MakeCache()
{
Root.TryGetNextLevel( out ICollection<IExpressionToken>? nextLevel );
foreach( TToken node in nextLevel ) { }
}
public virtual void MakeCache() { }
}
}